diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index fb6b51f..ae6b9e1 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -910,7 +910,7 @@ export class TransactionService { .addSelect('product.id', 'product_id'); if (startDate && endDate) { - baseQuery.where('transaction.created_at between :startDate and :enDate', { + baseQuery.andWhere('transaction.created_at between :startDate and :enDate', { startDate: new Date(startDate), enDate: new Date(endDate), });