fix: dup on update
This commit is contained in:
parent
c45db7332d
commit
333a8aedee
1 changed files with 1 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ export class FlowTemplateController extends Controller {
|
||||||
...body,
|
...body,
|
||||||
statusOrder: +(body.status === "INACTIVE"),
|
statusOrder: +(body.status === "INACTIVE"),
|
||||||
step: {
|
step: {
|
||||||
|
deleteMany: {},
|
||||||
create: body.step.map((v, i) => ({
|
create: body.step.map((v, i) => ({
|
||||||
type: v.type,
|
type: v.type,
|
||||||
name: v.name,
|
name: v.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue