chore: create,get all announcements with pagination
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/******************************************** */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user