Skip to content

Commit

Permalink
replace extend with merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed May 26, 2024
1 parent 3d562b4 commit f5aba7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export class ProductDiscountService {
console.log('page', page);
const { resultQuery, countQuery } =
await this.productQueryBuilderService.findAllAndCountQuery(
_.merge(filter, { inventoryStatusId: InventoryStatusEnum.available }),
_.extend(filter, {
inventoryStatusId: InventoryStatusEnum.available,
}),
);
let results = await this.repository.findAll(resultQuery);
const total = await this.repository.count(countQuery);
Expand Down

0 comments on commit f5aba7e

Please sign in to comment.