Skip to content

Commit

Permalink
#1652 Return the case template on update
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 17, 2020
1 parent 01ed145 commit 1e0a04d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ class CaseTemplateCtrl @Inject() (
.can(Permissions.manageCaseTemplate),
propertyUpdaters
)
.map(_ => Results.NoContent)
.flatMap {
case (caseTemplates, _) =>
caseTemplates
.richCaseTemplate
.getOrFail("CaseTemplate")
.map(richCaseTemplate => Results.Ok(richCaseTemplate.toJson))
}
}

def delete(caseTemplateNameOrId: String): Action[AnyContent] =
Expand Down

0 comments on commit 1e0a04d

Please sign in to comment.