chore: get announcements for customers
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user