@meltwater/conversations-api-services 1.0.3 → 1.0.4
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/package.json
CHANGED
|
@@ -394,7 +394,7 @@ export class FacebookApiClient {
|
|
|
394
394
|
const {
|
|
395
395
|
documentId,
|
|
396
396
|
appData: { hidden: hiddenOnNative },
|
|
397
|
-
metaData: { externalId
|
|
397
|
+
metaData: { externalId },
|
|
398
398
|
systemData: {
|
|
399
399
|
connectionsCredential: credentialId,
|
|
400
400
|
policies: { storage: { privateTo: companyId } = {} } = {},
|
|
@@ -82,7 +82,12 @@ export class LinkedInApiClient {
|
|
|
82
82
|
|
|
83
83
|
this.logger.info(
|
|
84
84
|
`Native Linkedin API Like Comment Response for documentId ${documentId}`,
|
|
85
|
-
{
|
|
85
|
+
{
|
|
86
|
+
ok: response.ok,
|
|
87
|
+
status: response.status,
|
|
88
|
+
message: JSON.parse(response.text),
|
|
89
|
+
likedByUser,
|
|
90
|
+
}
|
|
86
91
|
);
|
|
87
92
|
} catch (err) {
|
|
88
93
|
this.logger.error(documentId + ' - exception details', {
|
|
@@ -141,12 +146,20 @@ export class LinkedInApiClient {
|
|
|
141
146
|
|
|
142
147
|
this.logger.info(
|
|
143
148
|
`Native Linkedin API Delete Comment Response for documentId ${documentId}`,
|
|
144
|
-
{ response }
|
|
149
|
+
{ status: response.status, ok: response.ok }
|
|
145
150
|
);
|
|
146
151
|
} catch (err) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
if (err && err.response && err.response.text) {
|
|
153
|
+
this.logger.error(
|
|
154
|
+
`Call to linkedin api with documentId ${documentId} failed`,
|
|
155
|
+
{ message: JSON.parse(err.response.text) }
|
|
156
|
+
);
|
|
157
|
+
} else {
|
|
158
|
+
this.logger.error(
|
|
159
|
+
`Call to linkedin api with documentId ${documentId} failed`,
|
|
160
|
+
err
|
|
161
|
+
);
|
|
162
|
+
}
|
|
150
163
|
throw err;
|
|
151
164
|
}
|
|
152
165
|
return response;
|