summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2022-02-18 16:25:51 +0100
committerJannik Schönartz2022-02-18 16:25:51 +0100
commit5a38def7190ff8265d01f438e43549e256b59e0a (patch)
treed9dd8d3b233821f63727cfdc4192c9af53f6fd1e
parent[server/backends/idoit] Change Blade Chassis name to match the double slot (diff)
downloadbas-5a38def7190ff8265d01f438e43549e256b59e0a.tar.gz
bas-5a38def7190ff8265d01f438e43549e256b59e0a.tar.xz
bas-5a38def7190ff8265d01f438e43549e256b59e0a.zip
[server/registration] Fix bay 0 interpeted as false in the if statementHEADmaster
-rw-r--r--server/api/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 7ba0a48..706e897 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -762,7 +762,7 @@ async function parseHardwareInformation (data) {
client.location = {
...(data.location.slot && {
slot: data.location.slot,
- ...(data.location.bay && {
+ ...(!isNaN(data.location.bay) && {
bay: data.location.bay
})
})