update: make show in slider optional in create service dto

This commit is contained in:
mahyargdz
2025-04-21 12:37:55 +03:30
parent 8584e2b522
commit c330428ce5
2 changed files with 20 additions and 3 deletions
@@ -382,7 +382,7 @@ export class DanakServicesService {
async getDanakServicesSlider() {
const danakServices = await this.danakServicesRepository.find({
where: { showInSlider: true, isActive: true, deletedAt: IsNull(), category: { isActive: true, deletedAt: IsNull() } },
relations: { category: true },
relations: { category: true, images: true },
select: {
id: true,
name: true,
@@ -399,6 +399,10 @@ export class DanakServicesService {
id: true,
title: true,
},
images: {
id: true,
imageUrl: true,
},
},
order: { createdAt: "DESC" },
withDeleted: false,