From 0908d1af7b7a3c4f2017bbe9c2197f481ebe6708 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:15:47 +0100 Subject: [PATCH] chore: kysely safe null comparison plugin (#32990) --- server/src/utils/database.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/utils/database.ts b/server/src/utils/database.ts index c93286cf4..8f0135f9d 100644 --- a/server/src/utils/database.ts +++ b/server/src/utils/database.ts @@ -9,6 +9,7 @@ import { NotNull, OperandValueExpression, ReferenceExpression, + SafeNullComparisonPlugin, SelectQueryBuilder, Selectable, ShallowDehydrateObject, @@ -62,6 +63,7 @@ export const getKyselyConfig = (connection: DatabaseConnectionParams): KyselyCon }, }), }), + plugins: [new SafeNullComparisonPlugin()], log(event) { if (event.level !== 'error') { return;