Skip to content

Commit 353839a

Browse files
Merge pull request #297 from OpenSignLabs/fix
2 parents 751c7b5 + e6d3074 commit 353839a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/OpenSign/src/components/LoginFacebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const LoginFacebook = ({
8686
email: userDetails.Email,
8787
// "passsword":userDetails.Phone,
8888
phone: userDetails.Phone,
89-
role: "contracts_Admin",
89+
role: "contracts_User",
9090
company: userDetails.Company
9191
}
9292
};

apps/OpenSign/src/components/LoginGoogle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const GoogleSignInBtn = ({
148148
email: userDetails.Email,
149149
// "passsword":userDetails.Phone,
150150
phone: userDetails.Phone,
151-
role: "contracts_Admin",
151+
role: "contracts_User",
152152
company: userDetails.Company,
153153
jobTitle: userDetails.Destination
154154
}

apps/OpenSign/src/routes/Pgsignup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const PgSignUp = (props) => {
7474
const res = await Parse.Cloud.run("getUserDetails", params);
7575
// console.log("res", res);
7676
if (res) {
77-
const checkUser = new Parse.Query(extClass);
78-
const updateQuery = await checkUser.get(res.id);
77+
const updateQuery = new Parse.Object(extClass);
78+
updateQuery.id = res.id;
7979
updateQuery.set(
8080
"Next_billing_date",
8181
new Date(zohoRes.data.result.nextBillingDate)

0 commit comments

Comments
 (0)