Skip to content

Commit 80a942f

Browse files
committed
feat: support remote debugging
1 parent b5ce4df commit 80a942f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unicorn_contracts/src/contracts_service/contractEventHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class ContractEventHandlerFunction implements LambdaInterface {
4646
for (const sqsRecord of event.Records) {
4747
const contract = this.parseRecord(sqsRecord);
4848
tracer.putMetadata('Contract', contract);
49-
switch (sqsRecord.messageAttributes.HttpMethod.stringValue) {
49+
const httpMethod = sqsRecord.messageAttributes.HttpMethod.stringValue
50+
switch (httpMethod) {
5051
case 'POST':
5152
logger.info('Creating a contract', { contract });
5253
try {

0 commit comments

Comments
 (0)