1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Purge data right side bar #1599

This commit is contained in:
Hillel Coren 2017-08-02 22:37:41 +03:00
parent a96e87ac77
commit da25258a7a

View File

@ -61,6 +61,8 @@ class PurgeAccountData extends Job
$account->client_number_counter = $account->client_number_counter > 0 ? 1 : 0;
$account->save();
session([RECENTLY_VIEWED => false]);
if (env('MULTI_DB_ENABLED')) {
$current = config('database.default');
config(['database.default' => DB_NINJA_LOOKUP]);