Skip to content

Commit

Permalink
APIS-7016 Fix 'LaxEmailAddress' in audit detail (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
petekirby-ee authored May 16, 2024
1 parent 0f48391 commit d4f6441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ object AuditHelper {
"applicationId" -> app.id.value.toString,
"applicationName" -> app.name,
"upliftRequestedByEmail" -> app.state.requestedByEmailAddress.getOrElse("-"),
"applicationAdmins" -> app.admins.map(_.emailAddress).mkString(", ")
"applicationAdmins" -> app.admins.map(_.emailAddress.text).mkString(", ")
)

def calculateAppChanges(previous: StoredApplication, updated: StoredApplication) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class AuditServiceSpec extends AsyncHmrcSpec with ApplicationStateUtil
"applicationId" -> appInTesting.id.value.toString,
"applicationName" -> appInTesting.name,
"upliftRequestedByEmail" -> appInTesting.state.requestedByEmailAddress.getOrElse("-"),
"applicationAdmins" -> appInTesting.admins.map(_.emailAddress).mkString(", ")
"applicationAdmins" -> appInTesting.admins.map(_.emailAddress.text).mkString(", ")
)

val extraDetail = questionsWithAnswers ++ declinedData ++ dates ++ counters ++ gatekeeperDetails
Expand Down

0 comments on commit d4f6441

Please sign in to comment.