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,
|
||||
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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue