Przeglądaj źródła

remove link data

ryuichi-e 5 lat temu
rodzic
commit
c63f3ab231
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0 2
      src/server/routes/apiv3/share-links.js

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

@@ -60,8 +60,6 @@ module.exports = (crowi) => {
     const { pageId, expiration, description } = req.body;
     const ShareLink = crowi.model('ShareLink');
 
-    const LinkData = new ShareLink({ relatedPage: pageId, expiration_date: expiration, desc: description });
-
     try {
       const postedShareLink = await LinkData.save();
       return res.apiv3(postedShareLink);