@peopl-health/nexus 5.57.0-dev.9718 → 5.57.0-dev.9738

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.
@@ -197,7 +197,11 @@ async function sweepUnansweredInbound({
197
197
  // Claimed before filing, like the replay branch above: a ticket filed without its marker is a
198
198
  // ticket the next pass files again.
199
199
  const ticket = await ticketGate.acquire(key, 'alerted');
200
- if (ticket !== 'acquired') { skipped += 1; continue; }
200
+ if (ticket !== 'acquired') {
201
+ skipped += 1;
202
+ if (ticket === 'unavailable') await claims.release(key);
203
+ continue;
204
+ }
201
205
 
202
206
  logger.error('[inboundRecovery] patient was left unanswered', {
203
207
  code, ageMs, recoveryLive: canRecover, reachable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.57.0-dev.9718",
3
+ "version": "5.57.0-dev.9738",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",