Skip to content

Commit

Permalink
🐛 fix missing await in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Dec 28, 2023
1 parent bcbc895 commit 3bd1d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migration/1703777475319-FixGdocPostsWithoutType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class FixGdocPostsWithoutType1703777475319
// actual type in the gdoc. Because of the current code being too strict,
// the same does not happen when opening a gdoc in the admin if the type
// is missing, so this is a next-best workaround.
queryRunner.query(`-- sql
await queryRunner.query(`-- sql
update posts_gdocs
set content = json_insert(content, '$.type', 'article')
where content->>'$.type' is null;`)
Expand Down

0 comments on commit 3bd1d7b

Please sign in to comment.