summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2021-08-01 20:34:51 +0200
committerJannik Schönartz2021-08-01 20:34:51 +0200
commitb049516d548a335c7100755714157190bc9ee951 (patch)
treee191c97579885818fbaf5fc846ffa3de0f7fcadb
parent[server/idoit] fix last commit ... lol (diff)
downloadbas-b049516d548a335c7100755714157190bc9ee951.tar.gz
bas-b049516d548a335c7100755714157190bc9ee951.tar.xz
bas-b049516d548a335c7100755714157190bc9ee951.zip
[server/idoit] Fix idoit catg name
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index 6a91100..7f99138 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -923,8 +923,8 @@ class IdoitBackend extends ExternalBackends {
if (!rackObjects.result || !rack.result) return undefined
- // Check if the parent object is a rack else return this function (Type C__CATS__ENCLOSURE)
- if (rack.result[0].type.const !== 'C__CATS__ENCLOSURE' || rack.result[0].type.title !== 'Rack') return undefined
+ // Check if the parent object is a rack else return this function (Type C__OBJTYPE__ENCLOSURE)
+ if (rack.result[0].type.const !== 'C__OBJTYPE__ENCLOSURE' || rack.result[0].type.title !== 'Rack') return undefined
const rackName = rack.result[0].title
let rackSegmentId