Skip to content

Commit

Permalink
chore: fixup merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
glorat committed Jun 24, 2020
1 parent 4120e3c commit 204d761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playstore/app/controllers/Application.scala
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,15 @@ class Application @Inject()(cc: ControllerComponents)(implicit ec: ExecutionCont
})

}
def doChangeName() = messagesAction.async { implicit request: MessagesRequest[AnyContent] =>
def doChangeName() = Action.async { implicit request =>
renameForm.bindFromRequest.fold(
formWithErrors => {
val errs = formWithErrors.errors
errs.foreach(e => logger.warn(e.message))
scala.concurrent.Future(Redirect("/"))
},
formcmd => {

val ret = svcs.cmds.receive(formcmd)
ret.map(x => Redirect("/"))
})
Expand Down

0 comments on commit 204d761

Please sign in to comment.