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.
Files changed (2) hide show
  1. package/index.js +2 -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
- name: record.job_info.name,
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/automated_testing/report/add`, finalPayload, {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-cron-scheduler-batch",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {