feature/IO-3096-GlobalNotifications - Checkpoint, merge master, ready DB

This commit is contained in:
Dave Richer
2025-02-24 12:05:40 -05:00
parent e892e4cab1
commit a5cf81bd28
12 changed files with 142 additions and 48 deletions

View File

@@ -115,7 +115,7 @@ const scenarioParser = async (req, jobIdField) => {
})
.map((assoc) => {
const settings = assoc.notification_settings[scenario.key];
const watcherEmail = assoc.user || assoc.useremail;
const watcherEmail = assoc.useremail;
const matchingWatcher = jobWatchers.find((watcher) => watcher.email === watcherEmail);
// Build watcher object with notification preferences and personal details
@@ -126,7 +126,7 @@ const scenarioParser = async (req, jobIdField) => {
fcm: settings.fcm,
firstName: matchingWatcher ? matchingWatcher.firstName : undefined,
lastName: matchingWatcher ? matchingWatcher.lastName : undefined,
employeeId: matchingWatcher ? matchingWatcher.employeeId : undefined
employeeId: matchingWatcher ? assoc.id : undefined
};
})
}));