mirror of https://github.com/usememos/memos.git
fix: update user session retrieval to use user.ID instead of userID
This commit is contained in:
parent
50199fe998
commit
51f880a5c9
|
|
@ -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…
Reference in New Issue