Skip to content

Commit 896f62b

Browse files
committed
nits
1 parent 386609f commit 896f62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function _loadSchema(db) {
6868
db.schemaPromise = db.schemaCollection().then(collection => {
6969
return Schema.load(collection);
7070
}).then((res) => {
71+
delete db.schemaPromise;
7172
db._schema = res;
7273
return Promise.resolve(db._schema);
7374
})
@@ -77,7 +78,6 @@ function _loadSchema(db) {
7778

7879
DatabaseController.prototype.invalidateSchema = function() {
7980
delete this._schema;
80-
delete this.schemaPromise;
8181
}
8282

8383
// Returns a promise for a schema object.

0 commit comments

Comments
 (0)