Skip to content

Commit

Permalink
🚑 Fix missing not in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jan 6, 2024
1 parent 0eadce8 commit 2dfda06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/tokens.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class TokensService{

async blacklistToken(token: string, isRefresh: boolean, exception: boolean = true){
const dbToken = await this.getTokenEntity(token, isRefresh, exception);
if(exception && !dbToken)
if(!exception && !dbToken)
return false;
await this.prismaService.tokens.update({
where: {
Expand Down

0 comments on commit 2dfda06

Please sign in to comment.