From 2d482b355685f949ffe32620b6f43e4e0eb4180e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 8 Dec 2024 08:56:12 -0500 Subject: [PATCH 1/2] Fixing null types in postgres. --- .../up.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/migrations/2024-12-02-181601_add_report_combined_table/up.sql b/migrations/2024-12-02-181601_add_report_combined_table/up.sql index 8425f5d0d..8efb2a074 100644 --- a/migrations/2024-12-02-181601_add_report_combined_table/up.sql +++ b/migrations/2024-12-02-181601_add_report_combined_table/up.sql @@ -19,23 +19,23 @@ INSERT INTO report_combined (published, post_report_id, comment_report_id, priva SELECT published, id, - NULL, - NULL + NULL::int, + NULL::int FROM post_report UNION ALL SELECT published, - NULL, + NULL::int, id, - NULL + NULL::int FROM comment_report UNION ALL SELECT published, - NULL, - NULL, + NULL::int, + NULL::int, id FROM private_message_report; From 3e31e1c512ff6f8e7deaf5c546765537c42dca44 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 8 Dec 2024 09:16:43 -0500 Subject: [PATCH 2/2] Comment out err. --- api_tests/src/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_tests/src/shared.ts b/api_tests/src/shared.ts index b10d57002..4cad739f4 100644 --- a/api_tests/src/shared.ts +++ b/api_tests/src/shared.ts @@ -208,7 +208,7 @@ async function allowInstance(api: LemmyHttp, instance: string) { try { await api.adminAllowInstance(params); } catch (error) { - console.error(error); + // console.error(error); } }