summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJannik Schönartz2019-04-19 01:48:24 +0200
committerJannik Schönartz2019-04-19 01:48:24 +0200
commit69e17d8e050f35c22a16c896517ed67684a5b86c (patch)
treeb1e1b02a888e2122829c4216d189eb143e1872ef /server
parent[server/external-backends] Add hostname and domain to the network object for ... (diff)
downloadbas-69e17d8e050f35c22a16c896517ed67684a5b86c.tar.gz
bas-69e17d8e050f35c22a16c896517ed67684a5b86c.tar.xz
bas-69e17d8e050f35c22a16c896517ed67684a5b86c.zip
[server/external-backends] Parseint in the idoit update method because of externalId rework to string
Diffstat (limited to 'server')
-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 = []