Skip to content

Commit b3671df

Browse files
committed
Delete schema promise on error...
- Just because this way we can let the adapter an opportunity to yield a new error.... OR A SUCCESS
1 parent 867384f commit b3671df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ DatabaseController.prototype.validateClassName = function(className) {
110110
DatabaseController.prototype.loadSchema = function() {
111111
if (!this.schemaPromise) {
112112
this.schemaPromise = SchemaController.load(this.adapter);
113-
this.schemaPromise.then(() => delete this.schemaPromise);
113+
this.schemaPromise.then(() => delete this.schemaPromise,
114+
() => delete this.schemaPromise);
114115
}
115116
return this.schemaPromise;
116117
};

0 commit comments

Comments
 (0)