Skip to content

Commit

Permalink
[Unblock Health Modification] Modified GraphQLend point of register form
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed May 21, 2024
1 parent 0777ed2 commit f84e4c5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ $('#contact-submit-live').click(function (e) {
"data": JSON.stringify(registerFormData),
};
/* End of Novu Integration */
var settings = {
/*var settings = {
"url": "https://prime.dcp.infra.co.medigy.com/graphql",
"method": "POST",
"timeout": 0,
Expand All @@ -113,6 +113,18 @@ $('#contact-submit-live').click(function (e) {
query: "mutation MyMutation {\r\n notifyUserRegistrationV1(input: {email: \"" + email + "\", name: \"" + first_name + "\", userType: \"" + patientdetails + "\"}) {\r\n requestApiResponse {\r\n data\r\n status {\r\n code\r\n message\r\n }\r\n success\r\n }\r\n }\r\n}",
variables: {}
})
};*/
var settings = {
"url": "https://dcp.infra.unblock.health/graphql",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({
query: "mutation MyMutation {\r\n notifyUserRegistrationV1(input: {email: \"" + email + "\", name: \"" + first_name + "\", userType: \"" + patientdetails + "\"}) {\r\n requestApiResponse {\r\n data\r\n status {\r\n code\r\n message\r\n }\r\n success\r\n }\r\n }\r\n}",
variables: {}
})
};
$.ajax(settings).done(function (response) {
var form = new FormData();
Expand Down

0 comments on commit f84e4c5

Please sign in to comment.