fix: array length not match
This commit is contained in:
parent
9a67e3a6e9
commit
9612e71a88
1 changed files with 4 additions and 1 deletions
|
|
@ -256,7 +256,10 @@ export class QuotationController extends Controller {
|
||||||
.map((v) => v.workId || [])
|
.map((v) => v.workId || [])
|
||||||
.filter((v, i, a) => a.findIndex((c) => c === v) === i)
|
.filter((v, i, a) => a.findIndex((c) => c === v) === i)
|
||||||
.flat(),
|
.flat(),
|
||||||
service: body.productServiceList.map((v) => v.serviceId || []).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(
|
const [customerBranch, employee, product, work, service] = await prisma.$transaction(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue