@manyos/smileconnect-api 1.69.0 → 1.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/conf/clients.json CHANGED
@@ -1387,7 +1387,7 @@
1387
1387
  }
1388
1388
  },
1389
1389
  {
1390
- "name": "robert2",
1390
+ "name": "postman",
1391
1391
  "config": {
1392
1392
  "options": {
1393
1393
  "dateFormati": "dd.MM.yyyy HH:mm.ss",
package/docs/releases.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.69.0 - 23.07.24
5
+ Remove unnecessary writes during config checks on startup.
6
+
4
7
  ### 1.68.0 - 23.04.24
5
8
  Add configurable server names to openapi documentation
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.69.0",
3
+ "version": "1.69.1",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -96,6 +96,7 @@ module.exports = (function() {
96
96
  );
97
97
 
98
98
  log.debug('files', req.files);
99
+
99
100
  let fileContent = null;
100
101
 
101
102
  let file = null;
@@ -107,7 +108,7 @@ module.exports = (function() {
107
108
  //funktioniert nicht. Wahrscheinlich ein encoding problem
108
109
  file = {
109
110
  name: req.body.data.fileName,
110
- data: atob(req.body.data.fileContent),
111
+ data: Buffer.from(req.body.data.fileContent, 'base64'),
111
112
  mimetype: req.body.data.mimetype
112
113
  }
113
114
  }
package/util/arquery.js CHANGED
@@ -409,11 +409,10 @@ function updateEntry(form, id, entryData, clientOptions, eventLog) {
409
409
  log.debug('RAPI update return', response);
410
410
  const singleRecord = Object.keys(response).length == 1;
411
411
  if (singleRecord) {
412
- if (response[0].startsWith('null - ')) {
412
+ if (response && response[0].startsWith('null - ')) {
413
413
  reject(response[0]);
414
414
  }
415
415
  }
416
- //TODO check for status and reject if Error
417
416
  if (response && response.startsWith('[message:error')) {
418
417
  reject ('Could not update entry: ' + response);
419
418
  } else {