diff --git a/models/problem.js b/models/problem.js index 5b099f0..65dc5be 100644 --- a/models/problem.js +++ b/models/problem.js @@ -453,7 +453,7 @@ class Problem extends Model { } this.id = id; - this.save(); + await this.save(); } getModel() { return model; }