Bug Fixes

This commit is contained in:
David Bomba 2016-03-02 22:00:08 +11:00
parent 50c5d52e08
commit 8a33f6fec6

View File

@ -51,7 +51,7 @@ class PushService
foreach($devices as $device) foreach($devices as $device)
{ {
if(($device["notify_{$type}"] == TRUE) && ($device['device'] == 'ios')) if(($device["notify_{$type}"] == TRUE) && ($device['device'] == 'ios'))
$this->pushMessage($invoice, $device['token'], $device["notify_{$type}"]); $this->pushMessage($invoice, $device['token'], $type);
} }
@ -104,19 +104,19 @@ class PushService
{ {
switch($type) switch($type)
{ {
case 'notify_sent': case 'sent':
return $this->entitySentMessage($invoice); return $this->entitySentMessage($invoice);
break; break;
case 'notify_paid': case 'paid':
return $this->invoicePaidMessage($invoice); return $this->invoicePaidMessage($invoice);
break; break;
case 'notify_approved': case 'approved':
return $this->quoteApprovedMessage($invoice); return $this->quoteApprovedMessage($invoice);
break; break;
case 'notify_viewed': case 'viewed':
return $this->entityViewedMessage($invoice); return $this->entityViewedMessage($invoice);
break; break;
} }