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 {
async getReport(inputFrom_time: string, inputTo_time: string) {
const from_time = (inputFrom_time
? moment(inputFrom_time)
: moment()
).format('YYYY-MM-DD');
: moment().startOf('day')
).toDate()
const to_time = (inputTo_time
? moment(inputTo_time)
: moment().add(1, 'day')
).format('YYYY-MM-DD');
: moment().startOf('day').add(1, 'day')
).toDate()
try {
const [
{ 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