Skip to content

Commit

Permalink
Merge pull request #122 from Deep-Consulting-Solutions/esa-managed
Browse files Browse the repository at this point in the history
update status correctly
  • Loading branch information
tochukwualor authored Dec 10, 2024
2 parents 3d37d84 + 64afa17 commit 7f517cc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/esa/api/managed-zoho-crm-users/_post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
});
}

await prisma.zohoSchedulingSetup.update({
where: {
id: managedSetup.id,
},
data: {
status: "Pending Completion",
},
});

return {
message: "Managed setup in progress",
data: {
Expand All @@ -241,7 +250,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
id: managedSetup.id,
},
data: {
status: "Pending Completion",
status: "Completed",
},
});

Expand Down

0 comments on commit 7f517cc

Please sign in to comment.