We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f018021 commit 493fa69Copy full SHA for 493fa69
middleware.go
@@ -250,8 +250,9 @@ func Session(cfg Options) func(next http.Handler) http.Handler {
250
sessionType = max(sessionType, proto.SessionType_AccessKey)
251
252
ctx = WithAccessKey(ctx, accessKey)
253
-
254
- projectID, _ = GetProjectIDFromAccessKey(accessKey)
+ if projectID == 0 {
+ projectID, _ = GetProjectIDFromAccessKey(accessKey)
255
+ }
256
ctx = withProjectID(ctx, projectID)
257
httplog.SetAttrs(ctx, slog.Uint64("projectId", projectID))
258
break
0 commit comments