|
|
@@ -61,7 +61,7 @@ module.exports = (crowi) => {
|
|
|
const ShareLink = crowi.model('ShareLink');
|
|
|
|
|
|
try {
|
|
|
- const postedShareLink = await LinkData.save();
|
|
|
+ const postedShareLink = await ShareLink.create({ relatedPage: pageId, expiration_date: expiration, desc: description });
|
|
|
return res.apiv3(postedShareLink);
|
|
|
}
|
|
|
catch (err) {
|