Skip to content

Commit

Permalink
style: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj committed Sep 18, 2024
1 parent bcea01e commit 0f6d8c6
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions src/adapters/deployer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,33 @@ export function createDeployerComponent(

logger.info('Entity stored', { entityId: entity.entityId, entityType: entity.entityType })
// send sns
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.arn,
Message: JSON.stringify(deploymentToSqs)
})
)
logger.info('Notification sent', {
MessageId: receipt.MessageId as any,
SequenceNumber: receipt.SequenceNumber as any
})
})
}

if (components.sns.eventArn) {
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.eventArn,
TopicArn: components.sns.arn,
Message: JSON.stringify(deploymentToSqs)
})
)
logger.info('Notification sent to events SNS', {
logger.info('Notification sent', {
MessageId: receipt.MessageId as any,
SequenceNumber: receipt.SequenceNumber as any
})
})
}



if (components.sns.eventArn) {
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.eventArn,
Message: JSON.stringify(deploymentToSqs)
})
)
logger.info('Notification sent to events SNS', {
MessageId: receipt.MessageId as any,
SequenceNumber: receipt.SequenceNumber as any
})
}

await markAsDeployed()

} else {
await markAsDeployed()
}
Expand Down

0 comments on commit 0f6d8c6

Please sign in to comment.