FIX: sending metadata on creation of users

This commit is contained in:
Gabriel Rosa
2022-09-20 17:48:27 -03:00
parent 3d39affc61
commit c29cf5aee1
6 changed files with 47 additions and 25 deletions
+8
View File
@@ -185,6 +185,14 @@ export function EnrichErrorCode(code: string) {
code,
};
case ErrorCodes.USER.NOT_CREATED:
return {
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
error: 'Ocorreu um erro ao criar seu usúario',
message: 'Tente novamente ou entre em contato com o suporte',
code,
};
case ErrorCodes.USER.NOT_FOUND:
return {
statusCode: HttpStatus.NOT_FOUND,