feat: add headoffice as relation

This commit is contained in:
Methapon Metanipat 2024-08-30 11:33:08 +07:00
parent 1f47882e19
commit 7fa99fab8f
2 changed files with 17 additions and 0 deletions

View file

@ -244,6 +244,13 @@ export class UserBranchController extends Controller {
province: true,
district: true,
subDistrict: true,
headOffice: {
include: {
province: true,
district: true,
subDistrict: true,
},
},
},
},
},