Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
me-matt committed Oct 1, 2024
1 parent fa76bdc commit e9f04eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/functions/CertificateRequestProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export class CertificateRequestProcessor {
}

private async create(testResult: ITestResult): Promise<PutObjectCommandOutput> {
return this.certificateGenerationService
.generateCertificate(testResult)
.then((response: IGeneratedCertificateResponse) => this.certificateUploadService.uploadCertificate(response));
const response = await this.certificateGenerationService.generateCertificate(testResult);
return this.certificateUploadService.uploadCertificate(response);
}
}
2 changes: 1 addition & 1 deletion src/functions/certGen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callback, Context, Handler, SQSBatchItemFailure, SQSBatchResponse, SQSEvent, SQSRecord } from 'aws-lambda';
import { Callback, Context, Handler, SQSBatchItemFailure, SQSBatchResponse, SQSEvent } from 'aws-lambda';
import { Container } from 'typedi';
import { CertificateRequestProcessor } from './CertificateRequestProcessor';

Expand Down

0 comments on commit e9f04eb

Please sign in to comment.