mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-02 02:41:44 +00:00
fix: ignore null/undefined in where queries
This commit is contained in:
@@ -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