Skip to content

Commit b8f609d

Browse files
author
pedro
committed
fix:修复日志的创建
1 parent ddb3beb commit b8f609d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/log.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ function writeLog(template: string, ctx: IRouterContext) {
3232
Log.createLog(
3333
{
3434
message: message,
35-
userId: ctx.currentUser.id,
36-
userName: ctx.currentUser.nickname,
37-
statusCode: statusCode,
35+
user_id: ctx.currentUser.id,
36+
user_name: ctx.currentUser.nickname,
37+
status_code: statusCode,
3838
method: ctx.request.method,
3939
path: ctx.request.path,
4040
authority: auth

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-mizar",
3-
"version": "0.0.1-alpha.11",
3+
"version": "0.0.1-alpha.13",
44
"description": "The core library of Lin CMS",
55
"main": "lin/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)