@peopl-health/nexus 6.5.5 → 6.5.6

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.
@@ -154,7 +154,8 @@ async function alertIfUntaken(review, clock, stage, now) {
154
154
  // Replies to the group message Airtable posted for this alarm, so the case reads as one thread.
155
155
  const quoted = await readGroupMessageId(clock.emergencyRecordId, review.patientCode);
156
156
  if (!await claimStage(review, clock, stage, now)) return false;
157
- const result = await sendTeamAlert({ message, operator: OPERATOR, level: clock.level, quoted, withDoctors: clock.level === 'stat' && !who.identity.testPatient });
157
+ // A roster doctor gets the levels their sin_tomar lists, like anyone else on the team.
158
+ const result = await sendTeamAlert({ message, operator: OPERATOR, level: clock.level, quoted, withDoctors: !who.identity.testPatient });
158
159
  const phonesDelivered = result.phones.filter((phone) => phone.delivered).length;
159
160
  await getEscalationReview().updateOne(
160
161
  { _id: review._id, untakenAlerts: { $elemMatch: sameStage(clock, stage) } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "6.5.5",
3
+ "version": "6.5.6",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",