mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 06:34:29 -04:00
Fixes for middle ware key
This commit is contained in:
parent
1df4079625
commit
8b2f9a8708
@ -33,7 +33,7 @@ class BankMatchingService implements ShouldQueue
|
|||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
public function __construct(protected int $company_id, private string $db){}
|
public function __construct(public int $company_id, private string $db){}
|
||||||
|
|
||||||
public function handle() :void
|
public function handle() :void
|
||||||
{
|
{
|
||||||
@ -53,6 +53,8 @@ class BankMatchingService implements ShouldQueue
|
|||||||
|
|
||||||
public function middleware()
|
public function middleware()
|
||||||
{
|
{
|
||||||
return [new WithoutOverlapping("bank_match_rate:{$this->company_id}")];
|
$middleware_key = "bank_match_rate:{$this->company_id}";
|
||||||
|
|
||||||
|
return [new WithoutOverlapping($middleware_key)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user