itizawa 5 anni fa
parent
commit
b2268427ff
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/server/routes/apiv3/notification-setting.js

+ 1 - 1
src/server/routes/apiv3/notification-setting.js

@@ -326,7 +326,7 @@ module.exports = (crowi) => {
 
     try {
       const createdNotification = await notification.save();
-      return res.apiv3({ createdNotification }, 200);
+      return res.apiv3({ createdNotification }, 201);
     }
     catch (err) {
       const msg = 'Error occurred in updating global notification';