@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 +1 -1
- package/docs/releases.md +3 -0
- package/package.json +1 -1
- package/routes/ticketWorkLogRoutes.js +2 -1
- package/util/arquery.js +1 -2
package/conf/clients.json
CHANGED
package/docs/releases.md
CHANGED
package/package.json
CHANGED
|
@@ -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:
|
|
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 {
|