File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 108
108
console . log ( data ) ;
109
109
if ( data [ 'status' ] ) {
110
110
saved = true ;
111
+ console . log ( "Set saved=true" ) ;
111
112
} else {
112
113
var em = document . getElementById ( "errorMsg" ) ;
113
114
em . innerHTML = data [ 'message' ] ;
120
121
em . style . display = "block" ;
121
122
} ) ;
122
123
124
+ console . log ( "Trying to start sending" ) ;
123
125
if ( saved ) {
124
- console . log ( "Sending email now" ) ;
126
+ console . log ( "Sending message now" ) ;
125
127
fetch ( 'https://pastor-insights-service.gaianet.ai/webhook/2iMg3xL5cGDgVoDjoNjE/send_message/' + form_json [ 'passcode' ] + '/' + form_json [ 'profile' ] , {
126
128
method : 'GET' ,
127
129
credentials : "include"
130
+
128
131
} ) . then ( function ( response ) {
129
132
return response . json ( ) ;
130
133
Original file line number Diff line number Diff line change 30
30
} ,
31
31
body : JSON . stringify ( form_json ) ,
32
32
33
- } ) . then ( function ( response ) {
33
+ } ) . then ( function ( response ) {
34
34
return response . json ( ) ;
35
35
36
36
} ) . then ( function ( data ) {
You can’t perform that action at this time.
0 commit comments