From 07d1c17fd49cb1208b5192db9f2e14e2949078ac Mon Sep 17 00:00:00 2001 From: Mathis Hofer Date: Mon, 29 Jun 2026 16:16:36 +0200 Subject: [PATCH] statistics: Fix malformed query exception CS0580659 --- app/statistics/prisma.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/statistics/prisma.ts b/app/statistics/prisma.ts index 9f51009131..a83b642fa8 100644 --- a/app/statistics/prisma.ts +++ b/app/statistics/prisma.ts @@ -214,7 +214,7 @@ export const fetchChartsMetadata = async () => { WHERE NOT EXISTS ( SELECT 1 FROM jsonb_array_elements_text(iris) AS iri - WHERE NOT (iri LIKE 'http://%' OR iri LIKE 'https://%') + WHERE iri IS NULL OR NOT (iri LIKE 'http://%' OR iri LIKE 'https://%') ); `.then((rows) => { return rows.map((row) => ({