chore: get announcements for customers

This commit is contained in:
Matin
2025-02-20 12:09:37 +03:30
parent 5b8f419d81
commit e0a267bf2b
6 changed files with 42 additions and 3 deletions
@@ -363,6 +363,14 @@ export class UsersService {
///****************************************************** */
async getUsersByIds(ids: string[]) {
const users = await this.userRepository.find({ where: { id: In(ids) } });
if (!users) throw new BadRequestException(UserMessage.USER_NOT_FOUND);
return users;
}
///****************************************************** */
async updateUserPassword(userId: string, newPassword: string) {
const updatedUser = await this.userRepository.update(
{ id: userId },