1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

update channel name

This commit is contained in:
Benjamin Beganović 2024-09-18 13:12:05 +02:00
parent 693f4e0f6b
commit d12e277230

View File

@ -16,6 +16,7 @@ use App\Models\Company;
use App\Models\Invoice;
use App\Models\Payment;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;
@ -55,11 +56,7 @@ class InvoiceWasPaid implements ShouldBroadcast
public function broadcastOn(): array
{
return [
// @todo: make sure this is PrivateChannel once we have auth configured.
new Channel(
name: $this->company->company_key . '_invoices',
),
new PrivateChannel("{$this->company->company_key}.invoices"),
];
}