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;