Compare commits
No commits in common. "10a553ac9de91fb361234cfc15677c0a3a8a8406" and "9bc2f5fde278fe905409af55383e05f62811b940" have entirely different histories.
10a553ac9d
...
9bc2f5fde2
|
@ -106,15 +106,6 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
|
|||
queryBuilder.andWhere(`${this.tableName}.tenant_id Is Null`);
|
||||
}
|
||||
|
||||
if (this.filterParam.time_group_ids?.length) {
|
||||
queryBuilder.andWhere(
|
||||
`${this.tableName}.time_group_id In (:...timeGroupIds)`,
|
||||
{
|
||||
timeGroupIds: this.filterParam.time_group_ids,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
if (this.filterParam.show_to_booking) {
|
||||
queryBuilder.andWhere(`${this.tableName}.show_to_booking = true`);
|
||||
}
|
||||
|
|
|
@ -16,12 +16,6 @@ export class FilterItemDto extends BaseFilterDto implements FilterItemEntity {
|
|||
})
|
||||
season_period_ids: string[];
|
||||
|
||||
@ApiProperty({ type: ['string'], required: false })
|
||||
@Transform((body) => {
|
||||
return Array.isArray(body.value) ? body.value : [body.value];
|
||||
})
|
||||
time_group_ids: string[];
|
||||
|
||||
@ApiProperty({ type: ['string'], required: false })
|
||||
@Transform((body) => {
|
||||
return Array.isArray(body.value) ? body.value : [body.value];
|
||||
|
|
Loading…
Reference in New Issue