mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 20:59:28 +00:00
fix: refactor two commands in saving grade to prevent race conditions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user