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) => ({