@peopl-health/nexus 6.7.0-dev.21503 → 6.7.0-dev.21504

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.
@@ -127,6 +127,8 @@ async function checkReview(review, now, policy) {
127
127
  const ringAt = ringAtOf(review);
128
128
  if (!ringAt || timeOf(review.approverViewedAt) >= ringAt.getTime()) return false;
129
129
  if (now < workingDueAt(ringAt, Math.min(windowMinutes(3), windowMinutes(2)), policy)) return false;
130
+ if (recorded(review, 'team', ringAt)) return false;
131
+ if (now > workingDueAt(workingDueAt(ringAt, Math.max(windowMinutes(3), windowMinutes(2)) * 2, policy), STALE_MINUTES, policy)) return false;
130
132
  const minutes = windowMinutes(await gradeOf(review));
131
133
  const doctorDueAt = workingDueAt(ringAt, minutes, policy);
132
134
  const teamDueAt = workingDueAt(ringAt, minutes * 2, policy);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "6.7.0-dev.21503",
3
+ "version": "6.7.0-dev.21504",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",