Sfoglia il codice sorgente

Merge pull request #3641 from weseek/fix/5711-children-pages-not-showing-on-sidebar-fix

Fix/5711 Bug: 再起的な操作を行うと子供のページがサイドバーの最新の変更に表示されない GW-5710
Yuki Takei 5 anni fa
parent
commit
93b3b7f393
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/server/service/page.js

+ 3 - 1
src/server/service/page.js

@@ -103,7 +103,9 @@ class PageService {
       const revisionId = new mongoose.Types.ObjectId();
       const revisionId = new mongoose.Types.ObjectId();
 
 
       if (updateMetadata) {
       if (updateMetadata) {
-        unorderedBulkOp.find({ _id: page._id }).update({ $set: { path: newPagePath, lastUpdateUser: user._id, updatedAt:  Date.now() } });
+        unorderedBulkOp
+          .find({ _id: page._id })
+          .update({ $set: { path: newPagePath, lastUpdateUser: user._id, updatedAt: Date.now().toISOString() } });
       }
       }
       else {
       else {
         unorderedBulkOp.find({ _id: page._id }).update({ $set: { path: newPagePath } });
         unorderedBulkOp.find({ _id: page._id }).update({ $set: { path: newPagePath } });