diff --git a/include/library/Crunchbutton/Promo.php b/include/library/Crunchbutton/Promo.php index 1ec3cf3d5..46569fa0a 100644 --- a/include/library/Crunchbutton/Promo.php +++ b/include/library/Crunchbutton/Promo.php @@ -169,9 +169,9 @@ class Crunchbutton_Promo extends Cana_Table public function queNotifySMS() { $gift = $this; - c::timeout(function() use( $gift ) { + // c::timeout(function() use( $gift ) { $gift->notifySMS(); - }); + // }); } public function queNotifyEMAIL() { @@ -241,7 +241,7 @@ class Crunchbutton_Promo extends Cana_Table 'method' => '$promo->notifySMS()', 'type' => 'promo_sms' ]); - /* + $env = c::env() == 'live' ? 'live' : 'dev'; $twilio = new Twilio(c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token); @@ -279,7 +279,6 @@ class Crunchbutton_Promo extends Cana_Table $msg ); } - //*/ } public static function find($search = []) {