change whereDateQuery in branch
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 7s

This commit is contained in:
Kanjana 2025-04-17 16:21:05 +07:00
parent 5147eed15b
commit 27d3ce6573

View file

@ -319,13 +319,13 @@ export class BranchController extends Controller {
{ telephoneNo: { contains: query, mode: "insensitive" } }, { telephoneNo: { contains: query, mode: "insensitive" } },
...whereAddressQuery(query), ...whereAddressQuery(query),
], ],
...whereDateQuery(startDate, endDate),
}, },
include: { include: {
province: true, province: true,
district: true, district: true,
subDistrict: true, subDistrict: true,
}, },
...whereDateQuery(startDate, endDate),
orderBy: { code: "asc" }, orderBy: { code: "asc" },
} }
: false, : false,