From 1b1e1d8274dc536bb063ec50db61bf8e28b7965b Mon Sep 17 00:00:00 2001 From: Scott Goodwin <33629936+scott-goodwin@users.noreply.github.com> Date: Thu, 9 Feb 2023 11:04:21 +0000 Subject: [PATCH] DL-IDfix - added timestamp --- app/v1/controllers/SubmitReturnController.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/v1/controllers/SubmitReturnController.scala b/app/v1/controllers/SubmitReturnController.scala index a966ad0b..350e6d42 100644 --- a/app/v1/controllers/SubmitReturnController.scala +++ b/app/v1/controllers/SubmitReturnController.scala @@ -97,7 +97,8 @@ class SubmitReturnController @Inject()(val authService: EnrolmentsAuthService, val resCorrelationId: String = errorWrapper.correlationId val leftResult = errorResult(errorWrapper).withApiHeaders( resCorrelationId, - "Receipt-ID" -> correlationId) + "Receipt-ID" -> correlationId, + "Receipt-Timestamp" -> submissionTimestamp.format(DateUtils.isoInstantDatePattern)) warnLog(ControllerError(endpointLogContext ,vrn, request, leftResult.header.status, errorWrapper.error.message, resCorrelationId)) auditService.auditEvent(AuditEvents.auditSubmit(resCorrelationId,