Skip to content

Commit

Permalink
🐛 fix sync issue not taking published status into account
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Aug 13, 2024
1 parent f704dff commit 19cc89e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devTools/syncGraphersToR2/syncGraphersToR2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ async function main(parsedArgs: parseArgs.ParsedArgs, dryRun: boolean) {
Pick<DbRawChartConfig, "slug" | "fullMd5" | "id">
>(
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) => {
Expand Down

0 comments on commit 19cc89e

Please sign in to comment.