lixnet 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/server.js +3 -3
- package/package.json +1 -1
package/dist/lib/server.js
CHANGED
|
@@ -25,8 +25,8 @@ export default class LixnetServer {
|
|
|
25
25
|
error: "Invalid JSON",
|
|
26
26
|
}, { status: 400 });
|
|
27
27
|
}
|
|
28
|
-
if (!jsonData.
|
|
29
|
-
return this.jsonResponseMaker({ error: "
|
|
28
|
+
if (!jsonData.event) {
|
|
29
|
+
return this.jsonResponseMaker({ error: "Event not found" }, { status: 400 });
|
|
30
30
|
}
|
|
31
31
|
if (!jsonData.input) {
|
|
32
32
|
return this.jsonResponseMaker({ error: "Input not found" }, { status: 400 });
|
|
@@ -34,7 +34,7 @@ export default class LixnetServer {
|
|
|
34
34
|
const event = this.eventCollection[jsonData.event];
|
|
35
35
|
if (!event) {
|
|
36
36
|
return this.jsonResponseMaker({
|
|
37
|
-
error: "
|
|
37
|
+
error: "Event not found",
|
|
38
38
|
}, { status: 404 });
|
|
39
39
|
}
|
|
40
40
|
try {
|