@open-wa/wa-automate 4.44.2 → 4.44.3

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.
@@ -51,7 +51,7 @@ const chatwootMiddleware = (cliConfig, client) => {
51
51
  const sendAttachment = (attachment, c) => __awaiter(void 0, void 0, void 0, function* () { return client.sendImage(to, attachment.data_url, attachment.data_url.substring(attachment.data_url.lastIndexOf('/') + 1), c || '', null, true); });
52
52
  //send the text as the caption with the first message only
53
53
  promises.push(sendAttachment(firstAttachment, content));
54
- restAttachments.map(sendAttachment).map(promises.push);
54
+ (restAttachments || []).map(sendAttachment).map(promises.push);
55
55
  }
56
56
  else {
57
57
  //no attachments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.44.2",
3
+ "version": "4.44.3",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",