@peopl-health/nexus 5.54.6 → 5.54.8

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.
@@ -1,8 +1,8 @@
1
1
  const { v4: uuidv4 } = require('uuid');
2
2
 
3
3
  const { getSupportCandidateModel } = require('../models/supportCandidateModel');
4
- const { GROUP_INVITABLE } = require('./supportInvitability');
5
4
  const { SupportRoutingRecommendation } = require('../../shared/dtos/SupportRoutingRecommendation');
5
+ const { GROUP_INVITABLE } = require('./supportInvitability');
6
6
 
7
7
  const COOLDOWN_MS = 14 * 24 * 60 * 60 * 1000;
8
8
  const DELIVERY_STATUSES = ['sent', 'delivered', 'read', 'failed', 'unknown'];
@@ -499,7 +499,6 @@ async function clearCandidateEscalation(candidateId, {
499
499
  // specialist can see who was already invited and not invite them twice.
500
500
  const INVITABLE_ENGAGEMENT = { 'engagement.state': { $in: ['notInvited', 'invited', 'registered', 'attended'] } };
501
501
 
502
-
503
502
  async function readSupportDashboardCandidates() {
504
503
  const rows = await getSupportCandidateModel().find({
505
504
  service: { $in: ['nutrition', 'psychology'] },
@@ -584,7 +584,7 @@ async function closeEscalationReview({ id, closedBy, deliveryConfirmed = false,
584
584
  const review = await updateReview(
585
585
  reviewId,
586
586
  interrupted ? [current.status] : CLOSABLE_STATUSES,
587
- withCaseMirror(current, { $set: closure }, { operationsStatus: 'cerrado' }),
587
+ { $set: closure },
588
588
  interrupted ? { operationClaim: current.operationClaim ?? null } : {},
589
589
  );
590
590
  const closeChanges = { action: interrupted ? 'closed_from_interruption' : 'closed' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.54.6",
3
+ "version": "5.54.8",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",