forked from filipg/gonito
show message when extra points added
This commit is contained in:
parent
0243665bb0
commit
ffd746d51a
@ -20,6 +20,7 @@ postExtraPointsR = do
|
|||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
let (Just (Entity adderId _)) = mUser
|
let (Just (Entity adderId _)) = mUser
|
||||||
_ <- runDB $ insert $ ExtraPoints points description userId courseId now adderId
|
_ <- runDB $ insert $ ExtraPoints points description userId courseId now adderId
|
||||||
|
setMessage $ toHtml ("OK! Extra points added" :: Text)
|
||||||
return ()
|
return ()
|
||||||
_ -> do
|
_ -> do
|
||||||
return ()
|
return ()
|
||||||
|
Loading…
Reference in New Issue
Block a user