Created
March 12, 2019 14:11
-
-
Save tiqwab/ee77c33c1f8263eb2551b3c429a96780 to your computer and use it in GitHub Desktop.
snipets for slide: https://gitpitch.com/tiqwab/slides?p=action-cont
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(for { | |
conn <- withConnection | |
currentIssue <- findIssueById(editReq.id)(conn) | |
_ <- isIssueEditable(currentIssue)(BadRequest) | |
_ <- updateIssue(editReq.id, editReq.content) | |
} yield Ok("ok")).run(Future.successful) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment