@peopl-health/nexus 5.56.35 → 5.56.36
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.
|
@@ -10,7 +10,6 @@ const CACHE_TTL_MS = 60 * 1000;
|
|
|
10
10
|
|
|
11
11
|
const CAROUSEL_DELIVERY_FIELDS = [
|
|
12
12
|
'twilio_sent',
|
|
13
|
-
'first_attmp_send',
|
|
14
13
|
'delivered',
|
|
15
14
|
'date_delivered_at',
|
|
16
15
|
'twilio_error',
|
|
@@ -56,7 +55,8 @@ function deliveryStatus(row) {
|
|
|
56
55
|
if (delivered === 'read' || delivered === 'leído' || delivered === 'leido') return 'read';
|
|
57
56
|
if (delivered === 'failed' || delivered === 'undelivered') return 'failed';
|
|
58
57
|
if (delivered) return 'delivered';
|
|
59
|
-
|
|
58
|
+
// pending/queued, or an attempt Twilio never confirmed, has not left yet.
|
|
59
|
+
if (String(firstOf(row.twilio_sent) || '').trim().toLowerCase() === 'sent') return 'sent';
|
|
60
60
|
return 'queued';
|
|
61
61
|
}
|
|
62
62
|
|