IO-3166-Global-Notifications-Part-2 - Checkpoint

This commit is contained in:
Dave Richer
2025-03-06 16:02:01 -05:00
parent 53580fbc78
commit 2cee5f1944
7 changed files with 130 additions and 108 deletions

View File

@@ -95,7 +95,7 @@ const notificationScenarios = [
builder: intakeDeliveryChecklistCompletedBuilder
},
{
key: "payment-added",
key: "payment-collected-completed",
table: "payments",
onNew: true,
builder: paymentCollectedCompletedBuilder
@@ -110,9 +110,10 @@ const notificationScenarios = [
{
key: "critical-parts-status-changed",
table: "joblines",
fields: ["critical"],
onlyTruthyValues: ["critical"],
builder: criticalPartsStatusChangedBuilder
fields: ["status"],
onlyTruthyValues: ["status"],
builder: criticalPartsStatusChangedBuilder,
filterCallback: ({ eventData }) => !eventData?.data?.critical
},
{
key: "part-marked-back-ordered",