1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Multi-db support

This commit is contained in:
Hillel Coren 2017-05-04 20:18:41 +03:00
parent 03bb75674b
commit 3988b6750b

View File

@ -23,6 +23,7 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// support selecting job database
Queue::before(function (JobProcessing $event) { Queue::before(function (JobProcessing $event) {
$body = $event->job->getRawBody(); $body = $event->job->getRawBody();
preg_match('/db-ninja-[\d+]/', $body, $matches); preg_match('/db-ninja-[\d+]/', $body, $matches);