Minor cleanup

This commit is contained in:
Gregor Kleen 2017-10-11 00:29:31 +02:00
parent 845369a27a
commit b514ee3c92

View File

@ -23,7 +23,7 @@ getSubmissionListR = do
cIDKey <- getsYesod appCryptoIDKey cIDKey <- getsYesod appCryptoIDKey
let let
cryptEntity :: Entity Submission -> Handler (CryptoUUIDSubmission, Submission) cryptEntity :: Entity Submission -> Handler (CryptoUUIDSubmission, Submission)
cryptEntity (Entity key val) = (, val) <$> UUID.encrypt cIDKey (traceShowId key) cryptEntity (Entity key val) = (, val) <$> UUID.encrypt cIDKey key
submissionList <- mapM cryptEntity entityList submissionList <- mapM cryptEntity entityList
defaultLayout $(widgetFile "submission-list") defaultLayout $(widgetFile "submission-list")