mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 20:59:27 +00:00
add error handling for db calls
This commit is contained in:
@@ -10,6 +10,8 @@ import {
|
||||
LogoutHandler,
|
||||
RefreshTokenHandler,
|
||||
ResendVerificationEmailHandler,
|
||||
ResetPasswordHandler,
|
||||
SendPasswordRecoveryEmailHandler,
|
||||
VerifyEmailHandler,
|
||||
} from './use-cases'
|
||||
import { AuthRepository } from './infrastructure/auth.repository'
|
||||
@@ -20,6 +22,8 @@ const commandHandlers = [
|
||||
LogoutHandler,
|
||||
RefreshTokenHandler,
|
||||
ResendVerificationEmailHandler,
|
||||
ResetPasswordHandler,
|
||||
SendPasswordRecoveryEmailHandler,
|
||||
VerifyEmailHandler,
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user