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" } },
...whereAddressQuery(query),
],
...whereDateQuery(startDate, endDate),
},
include: {
province: true,
district: true,
subDistrict: true,
},
...whereDateQuery(startDate, endDate),
orderBy: { code: "asc" },
}
: false,