From c14c7350c09947089db2ddb05574ce46d0aab883 Mon Sep 17 00:00:00 2001 From: Audrius Date: Fri, 31 May 2024 13:50:34 +0100 Subject: [PATCH] Apply suggestions from code review Thanks Co-authored-by: oscar-richardson-softwire <116292912+oscar-richardson-softwire@users.noreply.github.com> --- src/modules/emails/emails.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/emails/emails.controller.ts b/src/modules/emails/emails.controller.ts index fce9093a..ee254a0a 100644 --- a/src/modules/emails/emails.controller.ts +++ b/src/modules/emails/emails.controller.ts @@ -24,7 +24,7 @@ export class EmailsController { @ApiOperation({ summary: 'Send email using GOV.UK Notify service', }) - @ApiBody({ type: [PostEmailsRequestDto] }) + @ApiBody({ type: PostEmailsRequestDto }) @ApiCreatedResponse({ status: HttpStatus.CREATED, description: 'Returns information about email transaction.', @@ -48,7 +48,7 @@ export class EmailsController { /** * Verify request and send email * @param {String} govUkNotifyKey - * @param {PostEmailsRequestItemDto[]} body + * @param {PostEmailsRequestDto} body * * @returns {Promise.} GOV.UK Notify response *