Skip to content

Commit

Permalink
Merge pull request #843 from ignacionar/#825
Browse files Browse the repository at this point in the history
#825 Set Unhealthy status from API
  • Loading branch information
vdelendik authored Nov 29, 2023
2 parents 6b37721 + 1506649 commit 914f4b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/units/api/controllers/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ function putDeviceInfoBySerial(req, res) {
case "Disconnected":
updates.push(dbapi.setDeviceAbsent(serial));
break;
case "Unhealthy":
updates.push(dbapi.saveDeviceStatus(serial, 7));
break;
default:
apiutil.respond(res, 400, "Unknown status requested");
break;
Expand Down

0 comments on commit 914f4b5

Please sign in to comment.