Преглед изворни кода

Fix error return code bug with event creation

Matt Coles пре 9 година
родитељ
комит
dd04085803
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      presenters/event-controller.js

+ 2 - 2
presenters/event-controller.js

@@ -49,14 +49,14 @@ module.exports = {
49 49
           } else {
50 50
             complete({
51 51
               "success": 0,
52
-              "error": 1
52
+              "error": 2
53 53
             })
54 54
           }
55 55
         });
56 56
       } else {
57 57
         complete({
58 58
           "success": 0,
59
-          "error": 2
59
+          "error": 1
60 60
         });
61 61
       }
62 62
     });