Commit 9e17bb6b authored by nanahira's avatar nanahira

fix report

parent aef690fd
Pipeline #33087 passed with stages
in 4 minutes and 8 seconds
...@@ -295,12 +295,12 @@ export class AppService { ...@@ -295,12 +295,12 @@ export class AppService {
async getReport(inputFrom_time: string, inputTo_time: string) { async getReport(inputFrom_time: string, inputTo_time: string) {
const from_time = (inputFrom_time const from_time = (inputFrom_time
? moment(inputFrom_time) ? moment(inputFrom_time)
: moment() : moment().startOf('day')
).format('YYYY-MM-DD'); ).toDate()
const to_time = (inputTo_time const to_time = (inputTo_time
? moment(inputTo_time) ? moment(inputTo_time)
: moment().add(1, 'day') : moment().startOf('day').add(1, 'day')
).format('YYYY-MM-DD'); ).toDate()
try { try {
const [ const [
{ entertainTotal }, { entertainTotal },
......
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