Skip to content

Commit

Permalink
Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejscott committed Aug 17, 2021
1 parent 8101da3 commit d1fcb11
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/helpers/eventBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ export default class EventBridge {
})
.promise();

await this.eventBridgeClient.removeTargets({
Ids: [this.targetId],
Rule: this.ruleName,
EventBusName: this.eventBridgeName,
});
await this.eventBridgeClient
.removeTargets({
Ids: [this.targetId],
Rule: this.ruleName,
EventBusName: this.eventBridgeName,
})
.promise();

await this.eventBridgeClient
.deleteRule({
Expand Down

0 comments on commit d1fcb11

Please sign in to comment.