Skip to content

Commit 59b4d02

Browse files
author
pedro
committed
fix:修复日志时间不存在的问题
1 parent c4bbc19 commit 59b4d02

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export class Log extends Model {
393393
let origin = {
394394
id: this.id,
395395
message: this.message,
396-
time: this.time ? null : dayjs(this.time).unix(),
396+
time: this.time,
397397
user_id: this.user_id,
398398
user_name: this.user_name,
399399
status_code: this.status_code,

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.24",
3+
"version": "0.0.1-alpha.25",
44
"description": "The core library of Lin CMS",
55
"main": "lin/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)