mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 11:44:07 +00:00
feat: add DB_LOGGING env
This commit is contained in:
@@ -51,7 +51,7 @@ const DataSourceOptions = new DataSource({
|
||||
database: isSqlite ? dbConnectionString : undefined,
|
||||
entities: [path.join(__dirname, "..", "entities", "*.js")],
|
||||
synchronize: !!process.env.DB_SYNC,
|
||||
logging: false,
|
||||
logging: process.env["DB_LOGGING"] === "true",
|
||||
bigNumberStrings: false,
|
||||
supportBigNumbers: true,
|
||||
name: "default",
|
||||
|
||||
Reference in New Issue
Block a user