From 8d827b4bf6c7160f23168c3c9ebe377e4341a994 Mon Sep 17 00:00:00 2001 From: Malted Date: Thu, 23 Jan 2025 15:55:51 -0500 Subject: [PATCH] Works --- src/app/api/cron/ysws-updates.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/api/cron/ysws-updates.ts b/src/app/api/cron/ysws-updates.ts index 762f46b2..b4861953 100644 --- a/src/app/api/cron/ysws-updates.ts +++ b/src/app/api/cron/ysws-updates.ts @@ -234,12 +234,13 @@ async function syncDirectedYswsGitHubLinkPresences(): Promise { 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, }) @@ -267,7 +268,8 @@ async function syncDirectedYswsGitHubLinkPresences(): Promise { ) 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