|
|
@@ -1171,10 +1171,10 @@ module.exports = function(crowi, app) {
|
|
|
|
|
|
try {
|
|
|
if (isEnabled) {
|
|
|
- await GlobalNotificationSetting.disable(id);
|
|
|
+ await GlobalNotificationSetting.enable(id);
|
|
|
}
|
|
|
else {
|
|
|
- await GlobalNotificationSetting.enable(id);
|
|
|
+ await GlobalNotificationSetting.disable(id);
|
|
|
}
|
|
|
|
|
|
return res.json(ApiResponse.success());
|