소스 검색

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