Skip to content

Commit

Permalink
DL-IDfix - added timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-goodwin committed Feb 9, 2023
1 parent ce77ce8 commit 1b1e1d8
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 1b1e1d8

Please sign in to comment.