Fix for tests
This commit is contained in:
parent
b3f53b99fa
commit
a52d6a537d
2 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class PurgeAccountData extends Job
|
|||
$current = config('database.default');
|
||||
config(['database.default' => DB_NINJA_LOOKUP]);
|
||||
|
||||
$lookupAccount = LookupAccount::whereAccountKey($account->account_key)->first();
|
||||
$lookupAccount = LookupAccount::whereAccountKey($account->account_key)->firstOrFail();
|
||||
DB::table('lookup_contacts')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
|
||||
DB::table('lookup_invitations')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ class AddMultipleDatabaseSupport extends Migration
|
|||
DB::table('db_servers')->insert(
|
||||
['name' => 'db-server-1']
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue