Permalink
Browse files

use current tenant's token in queue cron

  • Loading branch information...
1 parent 2dcbc89 commit 64ff986271bc457dd06df253def1340ed8e4c30e @bcoyle73 bcoyle73 committed Nov 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 queue.php
View
@@ -9,7 +9,7 @@
$event->data = json_decode($event->data);
$twilio_sid = $ci->settings->get('twilio_sid', $event->tenant);
$twilio_token = $ci->settings->get('twilio_token', $event->tenant);
- $service = new Services_Twilio($twilio_sid, $ci->twilio_token);
+ $service = new Services_Twilio($twilio_sid, $twilio_token);
if('sms' == $event->type)
$service->account->sms_messages->create($event->callerId, $event->number, $event->data->message);
else

0 comments on commit 64ff986

Please sign in to comment.