Skip to content

Commit

Permalink
refactor(queries): speed up DB queries by using _key and limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Aug 26, 2024
1 parent cc0e8e2 commit fb2d943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export class UserService extends ServiceBase<UserListResponse, UserList> impleme
}
}
);

if (user) {
logger.debug('found user from token', user);
// validate token expiry and delete if expired
Expand All @@ -484,7 +484,7 @@ export class UserService extends ServiceBase<UserListResponse, UserList> impleme
}
}
);

if (updatedUser) {
logger.debug('update of user token last login successfully', { updatedUser });
await this.tokenRedisClient.set(token, JSON.stringify(updatedUser));
Expand Down

0 comments on commit fb2d943

Please sign in to comment.