From 34363394e5415fd3fd30745343dae70708761093 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Tue, 13 Aug 2024 15:46:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20sync=20issue=20not=20takin?= =?UTF-8?q?g=20published=20status=20into=20account?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devTools/syncGraphersToR2/syncGraphersToR2.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devTools/syncGraphersToR2/syncGraphersToR2.ts b/devTools/syncGraphersToR2/syncGraphersToR2.ts index 54805b67a1b..92a92d1c459 100644 --- a/devTools/syncGraphersToR2/syncGraphersToR2.ts +++ b/devTools/syncGraphersToR2/syncGraphersToR2.ts @@ -227,7 +227,10 @@ async function main(parsedArgs: parseArgs.ParsedArgs, dryRun: boolean) { Pick >( trx, - `select slug, fullMd5, id from chart_configs where slug is not null` + `select slug, fullMd5, id + from chart_configs + where slug is not null + and full ->> '$.isPublished' = "true"` ) slugsAndHashesFromDb.forEach((row) => {