fix: ignore null/undefined in where queries

This commit is contained in:
CyberL1 authored and Rory& committed 2026-06-26 13:47:07 +02:00
1 parent d6c05bdeff
commit 4c14bf8dcc
1 file changed
+4
+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