Skip to content

Commit 574fd20

Browse files
committed
Add mood
1 parent 2241050 commit 574fd20

File tree

2 files changed

+262
-89
lines changed

2 files changed

+262
-89
lines changed

iot-devices/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ iotRouter.put('/devices', (req, res) => {
7373

7474
iotRouter.get('/animals', (req, res) => {
7575
const result = IoTDevices.fireAnimalCollars();
76-
res.status(result ? 204 : 401).send();
76+
res.status(result === false ? 401 : 204).send();
7777
});
7878

7979
iotRouter.put('/barndoor', (req, res) => {

0 commit comments

Comments
 (0)