@@ -569,8 +569,8 @@ module.exports = (crowi) => {
router.delete('/all-share-links/', loginRequiredStrictly, adminRequired, csrf, ApiV3FormValidator, async(req, res) => {
const ShareLink = crowi.model('ShareLink');
try {
- const shareLinksResult = await ShareLink.remove({});
- return res.apiv3({ shareLinksResult });
+ await ShareLink.remove({});
+ return res.apiv3();
}
catch (err) {
const msg = 'Error occured in delete all share links';