feat: add localization to expection messages

This commit is contained in:
Abdalhamid Alhamad
2025-01-14 12:39:19 +03:00
parent 5aa3d3774d
commit 6d2d2b558a
6 changed files with 200 additions and 21 deletions

View File

@ -82,6 +82,8 @@ export class CustomerService {
}
if (profilePicture.createdById && profilePicture.createdById !== userId) {
this.logger.error(`Profile picture ${profilePictureId} does not belong to user ${userId}`);
throw new BadRequestException('DOCUMENT.NOT_CREATED_BY_USER');
}
}
}