From e6d30744ba8ee4e5fdb112f05ab8f4d3a921e82e Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Sun, 31 Dec 2023 16:01:37 +0530 Subject: [PATCH] Update Pgsignup.js --- apps/OpenSign/src/routes/Pgsignup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/routes/Pgsignup.js b/apps/OpenSign/src/routes/Pgsignup.js index 5a48be5f8..af4cc0108 100644 --- a/apps/OpenSign/src/routes/Pgsignup.js +++ b/apps/OpenSign/src/routes/Pgsignup.js @@ -74,8 +74,8 @@ const PgSignUp = (props) => { const res = await Parse.Cloud.run("getUserDetails", params); // console.log("res", res); if (res) { - const checkUser = new Parse.Query(extClass); - const updateQuery = await checkUser.get(res.id); + const updateQuery = new Parse.Object(extClass); + updateQuery.id = res.id; updateQuery.set( "Next_billing_date", new Date(zohoRes.data.result.nextBillingDate)