Skip to content

Commit a7eb5dd

Browse files
committed
fix(model): fix update bug where promise was not awaited
1 parent 627f012 commit a7eb5dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = db => class Model {
106106
return this;
107107
}
108108
static async update(obj) {
109-
let instance = this.read(obj);
109+
let instance = await this.read(obj);
110110
return instance.update(obj);
111111
}
112112

0 commit comments

Comments
 (0)