mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-12 09:59:33 +00:00
fix: ignore null/undefined in where queries
This commit is contained in:
1 parent
d6c05bdeff
commit
4c14bf8dcc
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user