Skip to content

Commit

Permalink
removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhle79 committed Jul 18, 2024
1 parent daa1a9a commit a6fd085
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion go-app-ussd_chw_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ go.Hub = function() {
var data = {
"msisdn": msisdn,
"template_name": template_name,
"parameters": [],
"save_status_record": true
};
if(media) {
Expand Down
2 changes: 0 additions & 2 deletions go-app-ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ go.Hub = function() {
var data = {
"msisdn": msisdn,
"template_name": template_name,
"parameters": [],
"save_status_record": true
};
if(media) {
Expand Down Expand Up @@ -1263,7 +1262,6 @@ go.app = function() {
.send_whatsapp_template_message(msisdn, template_name, media)
.then(function(data) {
self.im.user.set_answer("preferred_channel", data.preferred_channel);
self.im.user.set_answer("status_id", data.status_id);
if (data.preferred_channel == "SMS") {
return self.rapidpro.get_global_flag("sms_registrations_enabled")
.then(function(sms_registration_enabled) {
Expand Down
1 change: 0 additions & 1 deletion go-app-ussd_popi_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ go.Hub = function() {
var data = {
"msisdn": msisdn,
"template_name": template_name,
"parameters": [],
"save_status_record": true
};
if(media) {
Expand Down
2 changes: 0 additions & 2 deletions go-app-ussd_public_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ go.Hub = function() {
var data = {
"msisdn": msisdn,
"template_name": template_name,
"parameters": [],
"save_status_record": true
};
if(media) {
Expand Down Expand Up @@ -472,7 +471,6 @@ go.app = function() {
.send_whatsapp_template_message(msisdn, template_name)
.then(function(data) {
self.im.user.set_answer("preferred_channel", data.preferred_channel);

if (data.preferred_channel == "SMS") {
return self.rapidpro.get_global_flag("sms_registrations_enabled")
.then(function(sms_registration_enabled) {
Expand Down
1 change: 0 additions & 1 deletion src/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ go.Hub = function() {
var data = {
"msisdn": msisdn,
"template_name": template_name,
"parameters": [],
"save_status_record": true
};
if(media) {
Expand Down
1 change: 0 additions & 1 deletion src/ussd_clinic_rapidpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ go.app = function() {
.send_whatsapp_template_message(msisdn, template_name, media)
.then(function(data) {
self.im.user.set_answer("preferred_channel", data.preferred_channel);
self.im.user.set_answer("status_id", data.status_id);
if (data.preferred_channel == "SMS") {
return self.rapidpro.get_global_flag("sms_registrations_enabled")
.then(function(sms_registration_enabled) {
Expand Down
1 change: 0 additions & 1 deletion test/fixtures_hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = function() {
var data = {
"msisdn": msisdn,
"template_name":template_name,
"parameters": [],
"save_status_record": true
};

Expand Down

0 comments on commit a6fd085

Please sign in to comment.