mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
feat: add localization to expection messages
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user