@clairejs/server 3.25.2 → 3.25.3

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ #### 3.25.3
4
+
5
+ - Fix AWS job scheduler cancel job rule id
6
+
3
7
  #### 3.25.2
4
8
 
5
9
  - add AbstractRbacAuthorizer
@@ -126,17 +126,18 @@ let AwsJobScheduler = class AwsJobScheduler extends AbstractJobScheduler {
126
126
  }
127
127
  }
128
128
  async cancelJob(jobId) {
129
+ const ruleId = `${this.jobNamespace}${jobId}`;
129
130
  await this.eventbridge
130
131
  .removeTargets({
131
132
  EventBusName: this.eventBusName,
132
- Rule: jobId,
133
- Ids: [jobId],
133
+ Rule: ruleId,
134
+ Ids: [ruleId],
134
135
  })
135
136
  .promise();
136
137
  await this.eventbridge
137
138
  .deleteRule({
138
139
  EventBusName: this.eventBusName,
139
- Name: jobId,
140
+ Name: ruleId,
140
141
  })
141
142
  .promise();
142
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.25.2",
3
+ "version": "3.25.3",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",