update: make show in slider optional in create service dto
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user