fix: wrong behaviour

This commit is contained in:
Methapon Metanipat 2024-08-23 15:45:46 +07:00
parent 39df3f4cf2
commit a312b797c7

View file

@ -200,13 +200,15 @@ export class BranchController extends Controller {
district: true, district: true,
subDistrict: true, subDistrict: true,
contact: true, contact: true,
branch: tree && { branch: tree
? {
include: { include: {
province: true, province: true,
district: true, district: true,
subDistrict: true, subDistrict: true,
}, },
}, }
: false,
bank: true, bank: true,
_count: { _count: {
select: { branch: true }, select: { branch: true },