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

Co-authored-by: huangyouchuan <huangyouchuan@letu.com>
pull/5326/head
Huang Youchuan 1 month ago committed by GitHub
parent ee9d9603ee
commit 26cb357685
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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")
}

Loading…
Cancel
Save