fix: update user session retrieval to use user.ID instead of userID (#5294)

Co-authored-by: huangyouchuan <huangyouchuan@letu.com>
This commit is contained in:
Huang Youchuan 2025-11-30 11:45:16 +08:00 committed by GitHub
parent ee9d9603ee
commit 26cb357685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ func (in *GRPCAuthInterceptor) authenticateBySession(ctx context.Context, sessio
}
// Get user sessions and validate the sessionID
sessions, err := in.Store.GetUserSessions(ctx, userID)
sessions, err := in.Store.GetUserSessions(ctx, user.ID)
if err != nil {
return nil, errors.Wrap(err, "failed to get user sessions")
}