@peopl-health/nexus 4.1.3 → 4.1.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.
@@ -122,7 +122,7 @@ class TwilioProvider extends MessageProvider {
122
122
  const sends = chunks ? chunks.map(body => ({ ...messageParams, body })) : [messageParams];
123
123
 
124
124
  let parentId = messageData.parentMessageId || null;
125
- if (!parentId && !messageData._skipStorage && this.messageStorage?.savePendingMessage) {
125
+ if (!parentId && this.messageStorage?.savePendingMessage) {
126
126
  const pending = await this.messageStorage.savePendingMessage({
127
127
  ...messageData, code: formattedCode, from: formattedFrom,
128
128
  provider: 'twilio', timestamp: new Date(), fromMe: true,
@@ -12,7 +12,6 @@ async function recordDeliveryAttempt({
12
12
 
13
13
  let targetId = messageId;
14
14
  if (!targetId) {
15
- if (messageData?._skipStorage) return null;
16
15
  if (!sid) return null;
17
16
  const msgDoc = await Message.findOne({ message_id: sid }, '_id').lean();
18
17
  if (!msgDoc) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",