fix: dup on update

This commit is contained in:
Methapon Metanipat 2024-10-28 10:18:47 +07:00
parent c45db7332d
commit 333a8aedee

View file

@ -176,6 +176,7 @@ export class FlowTemplateController extends Controller {
...body,
statusOrder: +(body.status === "INACTIVE"),
step: {
deleteMany: {},
create: body.step.map((v, i) => ({
type: v.type,
name: v.name,