Explorar el Código

adjust comment

itizawa hace 4 años
padre
commit
20358104d4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/server/routes/apiv3/share-links.js

+ 2 - 2
src/server/routes/apiv3/share-links.js

@@ -64,7 +64,7 @@ module.exports = (crowi) => {
   });
 
   validator.shareLinkStatus = [
-    // validate the page id is null
+    // validate the page id is MongoId
     body('relatedPage').isMongoId().withMessage('Page Id is required'),
     // validate expireation date is not empty, is not before today and is date.
     body('expiredAt').if(value => value != null).isAfter(today.toString()).withMessage('Your Selected date is past'),
@@ -128,7 +128,7 @@ module.exports = (crowi) => {
 
 
   validator.deleteShareLinks = [
-    // validate the page id is null
+    // validate the page id is MongoId
     query('relatedPage').isMongoId().withMessage('Page Id is required'),
   ];