File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/infra/docs-lambda-index-publisher Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323
2424return ;
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
You can’t perform that action at this time.
0 commit comments