@tiledesk/tiledesk-whatsapp-connector 0.1.57 → 0.1.58

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -214,6 +214,14 @@
214
214
 
215
215
  <p style="font-size: 18px;"><b>What's new?</b></p>
216
216
 
217
+ <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
218
+ <div>
219
+ <p style="margin-bottom: 0px">Bug fixes and minor improvements</p>
220
+ </div>
221
+ <p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.58</b></p>
222
+ </div>
223
+
224
+
217
225
  <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
218
226
  <div>
219
227
  <p>Added Messages Logs for WhatsApp broadcast</p>
@@ -237,14 +245,6 @@
237
245
  <p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.52</b></p>
238
246
  </div>
239
247
 
240
- <div style="width: 100%; display: flex; flex-direction: row; justify-content: space-between; margin-bottom: 15px;">
241
- <div>
242
- <p style="margin-bottom: 0px">Bug fixes</p>
243
- <!--<p>Bug fixes and performance improvements</p>-->
244
- </div>
245
- <p style="font-size: 12px; color: #676767; margin-bottom: 0px;">Version <b>0.1.50</b></p>
246
- </div>
247
-
248
248
 
249
249
  <hr style="margin-top: 50px; margin-bottom: 20px">
250
250
 
@@ -14,10 +14,13 @@ class WhatsappLogger {
14
14
  winston.debug("(wab) getCodeFromStatus result " + status_code);
15
15
 
16
16
  MessageLog.findOneAndUpdate({ message_id: message_id }, { $set: {status: status, status_code: status_code, error: error }}, { new: true }).then((messageLog) => {
17
- winston.verbose("(wab) status of message_id " + message_id + " updated to " + status);
18
- winston.debug("(wab) messageLog updated ", messageLog);
19
17
 
20
- this.sendLogWebhook(messageLog);
18
+ if (messageLog) {
19
+ winston.verbose("(wab) status of message_id " + message_id + " updated to " + status);
20
+ winston.debug("(wab) messageLog updated ", messageLog);
21
+ this.sendLogWebhook(messageLog);
22
+ }
23
+
21
24
  }).catch((err) => {
22
25
  winston.error("(wab) findOneAndUpdate error: ", err);
23
26
  })