mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
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) => {
|
this._db._exists((err, exists) => {
|
||||||
|
if (err) {
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
|
|
||||||
if (exists) {
|
if (exists) {
|
||||||
const tables = this._db._normalizeTables(internals.tables);
|
const tables = this._db._normalizeTables(internals.tables);
|
||||||
this._db.table(tables);
|
this._db.table(tables);
|
||||||
|
Loading…
Reference in New Issue
Block a user