summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/external-backends')
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index 7ebb6bd..160e7fe 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -245,7 +245,7 @@ class IdoitBackend extends ExternalBackends {
],
'C__CATG__LOCATION': {
'data': {
- 'parent': parseInt(client.parentId),
+ 'parent': client.parentId,
'option': client.location.option,
'insertion': client.location.insertion,
'pos': client.location.slot
@@ -353,6 +353,10 @@ class IdoitBackend extends ExternalBackends {
const headers = await this.getHeaders(c)
if (headers.error) return headers
+ // Parse needed because db values are strings. (Other backends need strings as external ids)
+ client.id = parseInt(client.id)
+ client.parentId = parseInt(client.parentId)
+
let bodies = []
// workaround for the fucking idoit shit. -.-
let requestResults = []