Skip to content

Commit

Permalink
Merge pull request #990 from hmrc/DL-IdFix
Browse files Browse the repository at this point in the history
DL-IDfix - added timestamp
  • Loading branch information
Thepworth95 authored Feb 9, 2023
2 parents eae8421 + 1b1e1d8 commit 0899c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/v1/controllers/SubmitReturnController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0899c1c

Please sign in to comment.