fix: add relation when get by id

This commit is contained in:
Methapon Metanipat 2024-08-27 18:14:50 +07:00
parent ba23ce870d
commit fec6812ff6

View file

@ -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,