mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Multi-db support
This commit is contained in:
parent
03bb75674b
commit
3988b6750b
@ -23,6 +23,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// support selecting job database
|
||||
Queue::before(function (JobProcessing $event) {
|
||||
$body = $event->job->getRawBody();
|
||||
preg_match('/db-ninja-[\d+]/', $body, $matches);
|
||||
|
Loading…
Reference in New Issue
Block a user