|
|
@@ -608,7 +608,7 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
// global notification
|
|
|
try {
|
|
|
- await globalNotificationService.fire(GlobalNotificationSetting.schema.EVENT.PAGE_CREATE, createdPage.path, req.user);
|
|
|
+ await globalNotificationService.fire(GlobalNotificationSetting.EVENT.PAGE_CREATE, createdPage.path, req.user);
|
|
|
}
|
|
|
catch (err) {
|
|
|
logger.error(err);
|
|
|
@@ -695,7 +695,7 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
// global notification
|
|
|
try {
|
|
|
- await globalNotificationService.fire(GlobalNotificationSetting.schema.EVENT.PAGE_EDIT, page.path, req.user);
|
|
|
+ await globalNotificationService.fire(GlobalNotificationSetting.EVENT.PAGE_EDIT, page.path, req.user);
|
|
|
}
|
|
|
catch (err) {
|
|
|
logger.error(err);
|
|
|
@@ -863,7 +863,7 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
try {
|
|
|
// global notification
|
|
|
- await globalNotificationService.fire(GlobalNotificationSetting.schema.EVENT.PAGE_LIKE, page.path, req.user);
|
|
|
+ await globalNotificationService.fire(GlobalNotificationSetting.EVENT.PAGE_LIKE, page.path, req.user);
|
|
|
}
|
|
|
catch (err) {
|
|
|
logger.error('Like failed', err);
|
|
|
@@ -1000,7 +1000,7 @@ module.exports = function(crowi, app) {
|
|
|
res.json(ApiResponse.success(result));
|
|
|
|
|
|
// global notification
|
|
|
- await globalNotificationService.fire(GlobalNotificationSetting.schema.EVENT.PAGE_DELETE, page.path, req.user);
|
|
|
+ await globalNotificationService.fire(GlobalNotificationSetting.EVENT.PAGE_DELETE, page.path, req.user);
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
@@ -1105,7 +1105,7 @@ module.exports = function(crowi, app) {
|
|
|
res.json(ApiResponse.success(result));
|
|
|
|
|
|
// global notification
|
|
|
- globalNotificationService.fire(GlobalNotificationSetting.schema.EVENT.PAGE_MOVE, page.path, req.user, {
|
|
|
+ globalNotificationService.fire(GlobalNotificationSetting.EVENT.PAGE_MOVE, page.path, req.user, {
|
|
|
oldPath: req.body.path,
|
|
|
});
|
|
|
|