From 8a33f6fec664c406c60087b7424f79b92572b838 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 2 Mar 2016 22:00:08 +1100 Subject: [PATCH] Bug Fixes --- app/Services/PushService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Services/PushService.php b/app/Services/PushService.php index 2e50fd586c2c..e8d1176aebf8 100644 --- a/app/Services/PushService.php +++ b/app/Services/PushService.php @@ -51,7 +51,7 @@ class PushService foreach($devices as $device) { 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) { - case 'notify_sent': + case 'sent': return $this->entitySentMessage($invoice); break; - case 'notify_paid': + case 'paid': return $this->invoicePaidMessage($invoice); break; - case 'notify_approved': + case 'approved': return $this->quoteApprovedMessage($invoice); break; - case 'notify_viewed': + case 'viewed': return $this->entityViewedMessage($invoice); break; }