Last active
July 13, 2021 04:47
-
-
Save amencke/6016d71a6c696c76a47dceb689ccdac3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
onComplete(maybeSessionGranted) { | |
case Success(SessionGranted(session)) => | |
postMessage(conversationID, pmr.userID, pmr.message)(session) | |
complete(OK, PostMessageResponse(pmr.message)) | |
case Failure(_) => | |
complete(BadRequestError, "Authentication Failed") | |
case _ => complete(InternalServerError) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment