fix: add relation when get by id
This commit is contained in:
parent
ba23ce870d
commit
fec6812ff6
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ export class CustomerBranchController extends Controller {
|
|||
async getById(@Path() branchId: string) {
|
||||
const record = await prisma.customerBranch.findFirst({
|
||||
include: {
|
||||
customer: true,
|
||||
province: true,
|
||||
district: true,
|
||||
subDistrict: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue