diff --git a/app/Models/PaymentHash.php b/app/Models/PaymentHash.php index 9905feddab65..233cb2d36731 100644 --- a/app/Models/PaymentHash.php +++ b/app/Models/PaymentHash.php @@ -40,7 +40,7 @@ class PaymentHash extends Model /** - * @return array + * @return mixed */ public function invoices() { diff --git a/app/PaymentDrivers/CheckoutCom/CheckoutWebhook.php b/app/PaymentDrivers/CheckoutCom/CheckoutWebhook.php index fcac5acdc3ac..5b9b51599982 100644 --- a/app/PaymentDrivers/CheckoutCom/CheckoutWebhook.php +++ b/app/PaymentDrivers/CheckoutCom/CheckoutWebhook.php @@ -69,7 +69,7 @@ class CheckoutWebhook implements ShouldQueue { $payment_object = $this->webhook_array['data']; - $payment = Payment::withTrashed()->where('transaction_reference', $payment_object['id'])->first(); + $payment = Payment::query()->withTrashed()->where('transaction_reference', $payment_object['id'])->first(); if($payment && $payment->status_id == Payment::STATUS_COMPLETED) return; @@ -84,7 +84,7 @@ class CheckoutWebhook implements ShouldQueue $metadata = $this->webhook_array['metadata']; - $payment_hash = PaymentHash::where('hash', $metadata['udf2'])->first(); + $payment_hash = PaymentHash::query()->where('hash', $metadata['udf2'])->first(); $driver = $this->company_gateway->driver($payment_hash->fee_invoice->client)->init()->setPaymentMethod(); diff --git a/config/beacon.php b/config/beacon.php index 06006106b268..8fff666a8173 100644 --- a/config/beacon.php +++ b/config/beacon.php @@ -22,8 +22,8 @@ return [ */ 'batch' => true, - // 'cache_connection' => 'sentinel-cache', - 'cache_connection' => 'cache', + 'cache_connection' => 'sentinel-cache', + // 'cache_connection' => 'cache', /* * The default key used to store * metrics for batching