Commit 4cd51873 by Leo Zheng

测试中间API

parent 7833fb92
......@@ -6,7 +6,7 @@ export class sightVisitorFlowByHourStrategy extends abstractDataStrategyLeft {
execute(params?: any): any {
if (!params || !params.query || !params.query.date || !params.query.sight) {
throw new Error('Date and sight parameters are required');
throw new Error('Date and sight parameters are required.');
}
const sightData = this.extractor.getData(sightVisitorFlowByHourStrategy.FILENAME, sightVisitorFlowByHourStrategy.SHEETNAME);
return mapToObj(this.getVisitorFlowByHour(sightData, params.query.sight, params.query.date));
......
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