Skip to content

Commit

Permalink
Works
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Jan 23, 2025
1 parent f8ad14e commit 8d827b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/api/cron/ysws-updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ async function syncDirectedYswsGitHubLinkPresences(): Promise<void> {
filterByFormula: and(
'reshipped_from = BLANK()',
"OR(last_directed_ysws_gh_link_synced_at = BLANK(), DATETIME_DIFF(TODAY(), last_directed_ysws_gh_link_synced_at, 'days') > 1)",
"NOT({for_ysws} = 'high_seas')",
"NOT(for_ysws = 'low_skies')",
"NOT(for_ysws = 'high-seas')",
"NOT(for_ysws = 'low-skies')",
"NOT(for_ysws = 'pending_fraud_review')",
"NOT(for_ysws = 'ship_link_broken')",
"NOT(for_ysws = 'none')",
"NOT(for_ysws = 'save for later')",
'NOT(for_ysws = BLANK())',
),
maxRecords: 1,
})
Expand Down Expand Up @@ -267,7 +268,8 @@ async function syncDirectedYswsGitHubLinkPresences(): Promise<void> {
)
return
} else if (yswsRecord.length === 1) {
updatePayload['temp_other_ysws_submitted_id'] = yswsRecord[0].id
console.log({ yswsRecordZid: yswsRecord[0].id })
updatePayload['other_ysws_submitted_id'] = yswsRecord[0].id
}

// Update last synced at
Expand Down

0 comments on commit 8d827b4

Please sign in to comment.