fix: transaction history

This commit is contained in:
ilham 2021-12-31 01:13:45 +07:00
parent 2dd659ca8e
commit de7f9c059b

View File

@ -910,7 +910,7 @@ export class TransactionService {
.addSelect('product.id', 'product_id'); .addSelect('product.id', 'product_id');
if (startDate && endDate) { 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), startDate: new Date(startDate),
enDate: new Date(endDate), enDate: new Date(endDate),
}); });