fix: detail workflow not save

This commit is contained in:
Methapon Metanipat 2024-11-07 15:01:30 +07:00
parent b6a5e3c41e
commit be14c7d87a

View file

@ -195,6 +195,7 @@ export class FlowTemplateController extends Controller {
})),
},
name: v.name,
detail: v.detail,
order: i + 1,
responsiblePerson: {
create: v.responsiblePersonId?.map((id) => ({
@ -243,6 +244,7 @@ export class FlowTemplateController extends Controller {
create: {
type: v.type,
name: v.name,
detail: v.detail,
order: i + 1,
value: {
create: v.value?.map((val) => ({ value: val })),
@ -258,6 +260,7 @@ export class FlowTemplateController extends Controller {
update: {
type: v.type,
name: v.name,
detail: v.detail,
order: i + 1,
value: {
deleteMany: {},