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