modify bugs

This commit is contained in:
2025-07-02 22:35:23 +08:00
parent 0f8abaec7f
commit d2692e6a11
24 changed files with 82 additions and 40 deletions
+1 -4
View File
@@ -8,10 +8,7 @@ export const database = createDBConfig((configure) => ({
common: {
synchronize: true,
// 启用详细日志以便调试 SQL 错误
logging:
configure.env.get('NODE_ENV') === 'development'
? ['query', 'error', 'schema', 'warn', 'info', 'log']
: ['error'],
logging: configure.env.get('NODE_ENV') === 'development' ? ['error', 'query'] : ['error'],
// 启用最大日志记录
maxQueryExecutionTime: 1000,
},