Explorar el Código

Merge pull request #3119 from weseek/feat/gw-4480

feat/gw-4480
Yuki Takei hace 5 años
padre
commit
a3391360bc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/models/page.js

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

@@ -403,7 +403,7 @@ module.exports = function(crowi) {
       throw new Error('User data is not valid');
     }
 
-    const added = this.seenUsers.addToSet(userData);
+    const added = this.seenUsers.addToSet(userData._id);
     const saved = await this.save();
 
     debug('seenUsers updated!', added);