Skip to content

Commit cb1b74e

Browse files
author
pedro
committed
feat:添加sequelize初始化配置项和修复日志校验器
1 parent f07c19e commit cb1b74e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/config/secure.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ module.exports = {
44
db: {
55
database: 'lin-cms5',
66
host: 'localhost',
7+
dialect: 'mysql',
78
port: 3306,
89
username: 'root',
910
password: '123456',
10-
logging: false
11+
logging: false,
12+
timezone: '+08:00'
1113
},
1214
secret:
1315
'\x88W\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJJU\x17\xc5V\xbe\x8b\xef\xd7\xd8\xd3\xe6\x95*4'

app/validators/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LogFindValidator extends PaginateValidator {
2828
if (!data.query) {
2929
return true;
3030
}
31-
const end = data.query.start;
31+
const end = data.query.end;
3232
if (isOptional(end)) {
3333
return true;
3434
}

0 commit comments

Comments
 (0)