fix: error relation
This commit is contained in:
parent
3bac123bf2
commit
b006750222
1 changed files with 8 additions and 2 deletions
|
|
@ -502,8 +502,14 @@ export class QuotationController extends Controller {
|
|||
product: body.productServiceList
|
||||
?.map((v) => v.productId)
|
||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i),
|
||||
work: body.productServiceList?.map((v) => v.workId || []).flat(),
|
||||
service: body.productServiceList?.map((v) => v.serviceId || []).flat(),
|
||||
work: body.productServiceList
|
||||
?.map((v) => v.workId || [])
|
||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i)
|
||||
.flat(),
|
||||
service: body.productServiceList
|
||||
?.map((v) => v.serviceId || [])
|
||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i)
|
||||
.flat(),
|
||||
};
|
||||
|
||||
const [customerBranch, employee, product, work, service] = await prisma.$transaction(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue