Skip to content

Commit

Permalink
#1652 Return the observable on update
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 17, 2020
1 parent 8116303 commit 3e82fdd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ class ObservableCtrl @Inject() (
_.get(EntityIdOrName(observableId)).can(Permissions.manageObservable),
propertyUpdaters
)
.map(_ => Results.NoContent)
.flatMap {
case (observables, _) =>
observables
.richObservable
.getOrFail("Observable")
.map(richObservable => Results.Ok(richObservable.toJson))
}
}

def findSimilar(observableId: String): Action[AnyContent] =
Expand Down

0 comments on commit 3e82fdd

Please sign in to comment.