Commit 2a660a9a authored by nanahira's avatar nanahira

fix deck info date

parent a44829a8
Pipeline #2944 passed with stages
in 1 minute and 10 seconds
...@@ -1384,7 +1384,7 @@ export class AppService { ...@@ -1384,7 +1384,7 @@ export class AppService {
const isNew = body.isNew; const isNew = body.isNew;
const now = new Date(moment().format('YYYY-MM-DD HH:mm')); const now = moment().toDate();
const content = { const content = {
author: this.chineseDirtyFilter.clean(author), author: this.chineseDirtyFilter.clean(author),
...@@ -1414,7 +1414,7 @@ export class AppService { ...@@ -1414,7 +1414,7 @@ export class AppService {
const deckInfoHistory = new DeckInfoHistory(); const deckInfoHistory = new DeckInfoHistory();
deckInfoHistory.name = name; deckInfoHistory.name = name;
deckInfoHistory.content = contentStr; deckInfoHistory.content = contentStr;
deckInfoHistory.end_time = now; deckInfoHistory.start_time = now;
this.log.log( this.log.log(
await db.getRepository(DeckInfoHistory).save(deckInfoHistory), await db.getRepository(DeckInfoHistory).save(deckInfoHistory),
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment