瀏覽代碼

enable / disable

sou 7 年之前
父節點
當前提交
2a9bea95c6
共有 1 個文件被更改,包括 2 次插入2 次删除
  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());