fix(portal-api): handle connection error
This commit is contained in:
parent
a58be6be37
commit
9eda12e75d
@ -159,6 +159,10 @@ class Data extends EventEmitter {
|
||||
}
|
||||
|
||||
this._db._exists((err, exists) => {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
if (exists) {
|
||||
const tables = this._db._normalizeTables(internals.tables);
|
||||
this._db.table(tables);
|
||||
|
Loading…
Reference in New Issue
Block a user