echoapi-cron-scheduler-batch 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -166,7 +166,7 @@ class CronScheduler {
|
|
|
166
166
|
const finalPayload = {
|
|
167
167
|
info: {
|
|
168
168
|
job_id: record.job_info.job_id,
|
|
169
|
-
|
|
169
|
+
report_name: record.job_info.name,
|
|
170
170
|
project_id: record.job_info.project_id,
|
|
171
171
|
user_uid: record.job_info.user_uid, // 放入最终报文
|
|
172
172
|
execution_id: executionId,
|
|
@@ -198,7 +198,7 @@ class CronScheduler {
|
|
|
198
198
|
console.log(`[CronScheduler] Batch job finished. ExecutionID: ${executionId}. Aggregating ${record.total} results...`);
|
|
199
199
|
// console.log(`[CronScheduler] TOKEN ${record.api_token}`);
|
|
200
200
|
|
|
201
|
-
const response = await axios.post(`${this.apiUrl}/open/
|
|
201
|
+
const response = await axios.post(`${this.apiUrl}/open/hnzycfc/scheduled_task/report/add`, finalPayload, {
|
|
202
202
|
headers: {
|
|
203
203
|
'Content-Type': 'application/json',
|
|
204
204
|
'api-token': record.api_token
|