Skip to content

Commit

Permalink
fix: SNS publishing messages (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega authored Oct 2, 2024
1 parent e0fc480 commit 0e20c50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/adapters/deployer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export function createDeployerComponent(
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.arn,
Message: JSON.stringify(deploymentToSqs),
MessageDeduplicationId: entity.entityId
Message: JSON.stringify(deploymentToSqs)
})
)
logger.info('Notification sent', {
Expand All @@ -74,8 +73,7 @@ export function createDeployerComponent(
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.eventArn,
Message: JSON.stringify(deploymentToSqs),
MessageDeduplicationId: entity.entityId
Message: JSON.stringify(deploymentToSqs)
})
)
logger.info('Notification sent to events SNS', {
Expand Down

0 comments on commit 0e20c50

Please sign in to comment.