chore: create,get all announcements with pagination

This commit is contained in:
Matin
2025-01-29 14:38:53 +03:30
parent 63e5d1b925
commit d5268a396d
9 changed files with 177 additions and 13 deletions
@@ -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,
};
}
}