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:
parent
693f4e0f6b
commit
d12e277230
@ -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"),
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user