chore: add docker file for build

This commit is contained in:
mahyargdz
2025-01-22 10:34:52 +03:30
parent 72b6cb35a0
commit c48ec70638
8 changed files with 86 additions and 21 deletions
+1 -2
View File
@@ -40,9 +40,8 @@ export class UsersService {
}
/************************************************************ */
async findOneWithEmail(email: string): Promise<User> {
async findOneWithEmail(email: string): Promise<User | null> {
const user = await this.userRepository.findOneWithEmail(email);
if (!user) throw new BadRequestException(UserMessage.USER_NOT_FOUND);
return user;
}
/************************************************************ */