Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/geo-brand-presence/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export async function loadPromptsAndSendDetection(
}

// For weekly cadence, validate calendarWeek; for daily, use dailyDateContext
// The import-worker step was removed; only detection remains here.
const dateContext = isDaily ? dailyDateContext : providedCalendarWeek;
if (!isNonEmptyObject(dateContext) || !dateContext.week || !dateContext.year) {
log.error('GEO BRAND PRESENCE: Invalid date context for site id %s (%s). Cannot send data to Mystique', siteId, baseURL, auditContext);
Expand Down
Loading