diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1d3be1016fce..8e9cb84cddc6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -68,7 +68,7 @@ class Kernel extends ConsoleKernel /* Run queue's with this*/ if (Ninja::isSelfHost()) { - $schedule->command('queue:work')->everyMinute()->withoutOverlapping(); + $schedule->command('queue:work --daemon')->everyMinute()->withoutOverlapping(); //we need to add this as we are seeing cached queues mess up the system on first load. $schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping(); diff --git a/app/PaymentDrivers/DriverTemplate.php b/app/PaymentDrivers/DriverTemplate.php index b44e4f8f1c9a..cd79f68c67ba 100644 --- a/app/PaymentDrivers/DriverTemplate.php +++ b/app/PaymentDrivers/DriverTemplate.php @@ -31,7 +31,7 @@ class DriverTemplate extends BaseDriver GatewayType::CREDIT_CARD => CreditCard::class, //maps GatewayType => Implementation class ]; - const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE; + const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE; //define a constant for your gateway ie TYPE_YOUR_CUSTOM_GATEWAY - set the const in the SystemLog model public function setPaymentMethod($payment_method_id) { diff --git a/app/Utils/Traits/Notifications/UserNotifies.php b/app/Utils/Traits/Notifications/UserNotifies.php index 477a4dd36567..4620c29cdaf4 100644 --- a/app/Utils/Traits/Notifications/UserNotifies.php +++ b/app/Utils/Traits/Notifications/UserNotifies.php @@ -34,7 +34,7 @@ trait UserNotifies array_push($required_permissions, 'all_user_notifications'); } - if (count(array_intersect($required_permissions, $notifications->email)) >= 1 || count(array_intersect($required_permissions, 'all_user_notifications')) >= 1 || count(array_intersect($required_permissions, 'all_notifications')) >= 1) { + if (count(array_intersect($required_permissions, $notifications->email)) >= 1 || count(array_intersect($required_permissions, ['all_user_notifications'])) >= 1 || count(array_intersect($required_permissions, 'all_notifications')) >= 1) { array_push($notifiable_methods, 'mail'); }