chore: create,get all announcements with pagination
This commit is contained in:
@@ -143,4 +143,14 @@ export class UsersService {
|
||||
userGroup,
|
||||
};
|
||||
}
|
||||
|
||||
///****************************************************** */
|
||||
|
||||
async getUserGroupsByIds(ids: string[]) {
|
||||
const userGroups = await this.userGroupRepository.find({ where: { id: In(ids) } });
|
||||
if (!userGroups) throw new BadRequestException(UserMessage.USER_GROUP_NOT_FOUND);
|
||||
return {
|
||||
userGroups,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user