Commit 90ba2925 authored by nanahira's avatar nanahira

fix

parent cc784dd1
Pipeline #5512 passed with stages
in 4 minutes and 30 seconds
...@@ -1766,7 +1766,7 @@ export class AppService { ...@@ -1766,7 +1766,7 @@ export class AppService {
async getLastMonthBattleCount() { async getLastMonthBattleCount() {
const lastMonth = moment().subtract(1, 'month'); const lastMonth = moment().subtract(1, 'month');
const fromTime = moment(lastMonth); const fromTime = moment(lastMonth);
fromTime.set({ day: 1, hour: 0, minute: 0, second: 0 }); fromTime.set({ date: 1, hour: 0, minute: 0, second: 0 });
const toTime = moment(fromTime).add(1, 'month'); const toTime = moment(fromTime).add(1, 'month');
//this.log.log(`${fromTime} - ${toTime}`); //this.log.log(`${fromTime} - ${toTime}`);
const count = await this.mcdb.getRepository(BattleHistory).count({ const count = await this.mcdb.getRepository(BattleHistory).count({
......
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