Skip to content

Commit

Permalink
add status field while creating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshuxkumar committed Jan 19, 2025
1 parent 5bb7ee5 commit 4512f56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/server/src/routes/workflow.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ router.post("/create" , authUserMiddleware , async(req: Request , res: Response)
name : parsedData.data.name || "Untitled workflow",
userId : userId as number,
triggerId: "",
status: 'On',
actions: {
create : parsedData.data?.actions?.map((item , index) => ({
actionTypeId: item.actionTypeId as string,
Expand All @@ -52,6 +53,7 @@ router.post("/create" , authUserMiddleware , async(req: Request , res: Response)
name : parsedData.data.name || "Untitled workflow",
userId : userId as number,
triggerId: "",
status: 'On',
actions: {
create : parsedData.data?.actions?.map((item , index) => ({
actionTypeId: item.actionTypeId as string,
Expand Down

0 comments on commit 4512f56

Please sign in to comment.