From 3bd1d7b306d2b00f4861ebc0c7221fa68fe1d155 Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Thu, 28 Dec 2023 16:54:33 +0100 Subject: [PATCH] :bug: fix missing await in migration --- db/migration/1703777475319-FixGdocPostsWithoutType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migration/1703777475319-FixGdocPostsWithoutType.ts b/db/migration/1703777475319-FixGdocPostsWithoutType.ts index f925a0305bb..7d0403b2041 100644 --- a/db/migration/1703777475319-FixGdocPostsWithoutType.ts +++ b/db/migration/1703777475319-FixGdocPostsWithoutType.ts @@ -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;`)