Skip to content

Commit

Permalink
fix storing OS uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Jan 29, 2025
1 parent b56af31 commit 23e47ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -6636,6 +6636,7 @@ async function storeAppRunningMessage(message) {
ip: message.ip,
broadcastedAt: new Date(message.broadcastedAt),
expireAt: new Date(validTill),
osUptime: message.osUptime,
};

// indexes over name, hash, ip. Then name + ip and name + ip + broadcastedAt.
Expand All @@ -6656,9 +6657,6 @@ async function storeAppRunningMessage(message) {
} else if (result && result.runningSince) {
newAppRunningMessage.runningSince = result.runningSince;
}
if (result.osUptime) {
newAppRunningMessage.osUptime = result.osUptime;
}
const queryUpdate = { name: newAppRunningMessage.name, ip: newAppRunningMessage.ip };
const update = { $set: newAppRunningMessage };
const options = {
Expand Down

0 comments on commit 23e47ac

Please sign in to comment.