Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sigma 1155 capi registration ussd #638

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
removed console logs
  • Loading branch information
Buhle79 committed Jul 22, 2024
commit 111af3e129b555725491e88d0710a30b3f338666
3 changes: 0 additions & 3 deletions go-app-ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
@@ -1278,7 +1278,6 @@ go.app = function() {
return self.states.create("state_accept_popi");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Template Error: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);
@@ -1435,7 +1434,6 @@ go.app = function() {
return self.states.create("state_trigger_rapidpro_flow");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Status Error: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);
@@ -1517,7 +1515,6 @@ go.app = function() {
return self.states.create("state_registration_complete");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Trigger RP: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);
3 changes: 0 additions & 3 deletions src/ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
@@ -1017,7 +1017,6 @@ go.app = function() {
return self.states.create("state_accept_popi");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Template Error: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);
@@ -1174,7 +1173,6 @@ go.app = function() {
return self.states.create("state_trigger_rapidpro_flow");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Status Error: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);
@@ -1256,7 +1254,6 @@ go.app = function() {
return self.states.create("state_registration_complete");
}).catch(function(e) {
// Go to error state after 3 failed HTTP requests
console.log("Trigger RP: ", e.message);
opts.http_error_count = _.get(opts, "http_error_count", 0) + 1;
if (opts.http_error_count === 3) {
self.im.log.error(e.message);