From 35c1d70c7a99f3205dfec61a9b1f72dd5b262a81 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Fri, 7 Jun 2019 16:42:37 +0000 Subject: [external-backends/idoit] Small bug fix --- server/lib/external-backends/backends/idoit-backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js index 23ee81a..f0d8ae1 100644 --- a/server/lib/external-backends/backends/idoit-backend.js +++ b/server/lib/external-backends/backends/idoit-backend.js @@ -337,7 +337,7 @@ class IdoitBackend extends ExternalBackends { } const readSlotsParam = this.getBody('cmdb.category.read', paramsSlots, 'read_slots') const readSlots = await this.axiosRequest(c.url, [readSlotsParam], headers) - const bays = readSlots.result + const bays = readSlots[0].result const assignToSlotBody = this.getBody('cmdb.category.save', { 'apikey': c.apikey, 'objID': chassisId, -- cgit v1.2.3-55-g7522