|
@@ -37,7 +37,7 @@ async function processTask(timeRange){
|
|
|
}
|
|
|
if(timeRange!=null){
|
|
|
const today = new Date().toISOString().split('T')[0];
|
|
|
- cur_day_data[today][timeRange.start] = {count:response.result.count}
|
|
|
+ cur_day_data[today][timeRange.start].count = response.result.count
|
|
|
const updateResult = await manager.updateRecord(today,cur_day_data[timeRange.today]);
|
|
|
}
|
|
|
|
|
@@ -202,7 +202,7 @@ CMD.init = async function(){
|
|
|
}
|
|
|
|
|
|
if(!cur_day_data[today][timeRange.start]){
|
|
|
- cur_day_data[today][timeRange.start] = {}
|
|
|
+ cur_day_data[today][timeRange.start] = {name:timeRange.name}
|
|
|
}
|
|
|
const result = await manager.createRecord(today,cur_day_data[today]);
|
|
|
if(result.success){
|
|
@@ -377,7 +377,7 @@ CMD.init = async function(){
|
|
|
},
|
|
|
{
|
|
|
name: '下午区间',
|
|
|
- start: '16:16',
|
|
|
+ start: '16:27',
|
|
|
timestamp: 1733817600000,
|
|
|
hour: 16,
|
|
|
timeFormat: '12/10/2024, 4:00:00 PM'
|