itizawa пре 5 година
родитељ
комит
05cfedb48a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/server/routes/apiv3/pages.js

+ 2 - 2
src/server/routes/apiv3/pages.js

@@ -201,7 +201,7 @@ module.exports = (crowi) => {
       return res.apiv3Err('Failed to update page.', 500, 'unknown');
       return res.apiv3Err('Failed to update page.', 500, 'unknown');
     }
     }
 
 
-    // result.page = page; // TODO consider to use serializeToObj method -- 2018.08.06 Yuki Takei
+    const result = { page: pageService.serializeToObj(page)};
 
 
     try {
     try {
       // global notification
       // global notification
@@ -213,7 +213,7 @@ module.exports = (crowi) => {
       logger.error('Move notification failed', err);
       logger.error('Move notification failed', err);
     }
     }
 
 
-    return res.apiv3({ page });
+    return res.apiv3(result);
   });
   });