|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import { SUPPORTED_ACTION_TYPE } from '~/interfaces/activity';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -53,6 +54,8 @@ module.exports = function(crowi, app) {
|
|
|
const GlobalNotificationSetting = crowi.model('GlobalNotificationSetting');
|
|
const GlobalNotificationSetting = crowi.model('GlobalNotificationSetting');
|
|
|
const ApiResponse = require('../util/apiResponse');
|
|
const ApiResponse = require('../util/apiResponse');
|
|
|
|
|
|
|
|
|
|
+ const activityEvent = crowi.event('activity');
|
|
|
|
|
+
|
|
|
const globalNotificationService = crowi.getGlobalNotificationService();
|
|
const globalNotificationService = crowi.getGlobalNotificationService();
|
|
|
const userNotificationService = crowi.getUserNotificationService();
|
|
const userNotificationService = crowi.getUserNotificationService();
|
|
|
|
|
|
|
@@ -465,6 +468,9 @@ module.exports = function(crowi, app) {
|
|
|
return res.json(ApiResponse.error(err));
|
|
return res.json(ApiResponse.error(err));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const parameters = { action: SUPPORTED_ACTION_TYPE.ACTION_COMMENT_REMOVE };
|
|
|
|
|
+ activityEvent.emit('update', res.locals.activity._id, parameters);
|
|
|
|
|
+
|
|
|
return res.json(ApiResponse.success({}));
|
|
return res.json(ApiResponse.success({}));
|
|
|
};
|
|
};
|
|
|
|
|
|