Minor cleanup
This commit is contained in:
parent
845369a27a
commit
b514ee3c92
@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user