fix: wrong behaviour
This commit is contained in:
parent
39df3f4cf2
commit
a312b797c7
1 changed files with 9 additions and 7 deletions
|
|
@ -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: {
|
? {
|
||||||
province: true,
|
include: {
|
||||||
district: true,
|
province: true,
|
||||||
subDistrict: true,
|
district: true,
|
||||||
},
|
subDistrict: true,
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
: false,
|
||||||
bank: true,
|
bank: true,
|
||||||
_count: {
|
_count: {
|
||||||
select: { branch: true },
|
select: { branch: true },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue