fix: refactor two commands in saving grade to prevent race conditions

This commit is contained in:
2024-01-20 13:13:59 +01:00
parent b897c775a9
commit 6b63fd498a
14 changed files with 140 additions and 97 deletions

View File

@@ -5,7 +5,10 @@ import * as jwt from 'jsonwebtoken'
import { AuthRepository } from '../infrastructure/auth.repository'
export class RefreshTokenCommand {
constructor(public readonly userId: string, public readonly shortAccessToken: boolean) {}
constructor(
public readonly userId: string,
public readonly shortAccessToken: boolean
) {}
}
@CommandHandler(RefreshTokenCommand)