Seiya Tashiro 7 سال پیش
والد
کامیت
b1b4c86b4e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/server/models/user.js

+ 1 - 1
src/server/models/user.js

@@ -257,7 +257,7 @@ module.exports = function(crowi) {
   userSchema.methods.statusActivate = async function() {
     debug('Activate User', this);
     this.status = STATUS_ACTIVE;
-    this.save(function(err, userData) {
+    await this.save(function(err, userData) {
       userEvent.emit('activated', userData);
       if (err) {
         throw new Error(err);