Browse Source

enable / disable

sou 7 years ago
parent
commit
2a9bea95c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/routes/admin.js

+ 2 - 2
lib/routes/admin.js

@@ -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());