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
@@ -127,5 +127,12 @@ export class DanakServicesService {
}
/******************************************** */
async findServiceById(id: string) {
const service = await this.danakServicesRepository.findOneBy({ id });
if (!service) throw new BadRequestException(ServiceMessage.SERVICE_NOT_EXIST);
return service;
}
/******************************************** */
}