fix: ignore null/undefined in where queries

This commit is contained in:
CyberL1
2026-06-26 13:19:39 +02:00
committed by Rory&
parent d6c05bdeff
commit 4c14bf8dcc
+4
View File
@@ -63,6 +63,10 @@ export const DataSourceOptions = isHeadlessProcess
supportBigNumbers: true,
name: "default",
migrations: applyMigrations ? [path.join(__dirname, "migration", DatabaseType, "*.js")] : [],
invalidWhereValuesBehavior: {
null: "sql-null",
undefined: "ignore",
},
});
// Gets the existing database connection