Skip to content

Commit b239b2b

Browse files
committed
ok
1 parent 6b77cce commit b239b2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/infra/docs-lambda-index-publisher/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
return;
2525

26-
static async Task<string> Handler(SQSEvent ev, ILambdaContext context)
26+
static async Task<SQSBatchResponse> Handler(SQSEvent ev, ILambdaContext context)
2727
{
2828
var s3Client = new AmazonS3Client();
2929
var batchItemFailures = new List<SQSBatchResponse.BatchItemFailure>();
@@ -83,7 +83,7 @@ static async Task<string> Handler(SQSEvent ev, ILambdaContext context)
8383
context.Logger.LogInformation($"Failed to process {batchItemFailures.Count} messages. Returning them to the queue.");
8484
context.Logger.LogInformation(jsonString);
8585
}
86-
return jsonString;
86+
return response;
8787
}
8888
catch (Exception ex)
8989
{
@@ -101,7 +101,7 @@ static async Task<string> Handler(SQSEvent ev, ILambdaContext context)
101101
}).ToList());
102102
var jsonString = JsonSerializer.Serialize(response, LinkIndexUpdaterSerializerContext.Default.SQSBatchResponse);
103103
context.Logger.LogInformation(jsonString);
104-
return jsonString;
104+
return response;
105105
}
106106
}
107107

0 commit comments

Comments
 (0)