in hq/app/db/IamRemediationDb.scala [52:66]
private def get(request: GetItemRequest)(implicit ec: ExecutionContext): Attempt[Map[String, AttributeValue]] = {
try {
Attempt.Right(client.getItem(request).item.asScala.toMap)
} catch {
case NonFatal(e) =>
Attempt.Left(
Failure(
s"unable to get item from dynamoDB table",
s"I haven't been able to get the item you were looking for from the dynamo table for the vulnerable user job",
500,
throwable = Some(e)
)
)
}
}