Browse Source

remove link data

ryuichi-e 6 năm trước cách đây
mục cha
commit
c63f3ab231
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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);