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) => {