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,
subDistrict: true,
contact: true,
branch: tree && {
include: {
province: true,
district: true,
subDistrict: true,
},
},
branch: tree
? {
include: {
province: true,
district: true,
subDistrict: true,
},
}
: false,
bank: true,
_count: {
select: { branch: true },