Created a route to fetch recent modifications as a csv to allow creating clients

This commit is contained in:
Stuce 2025-07-03 09:42:31 +01:00
parent de60936cd2
commit 1e661031fb
8 changed files with 71 additions and 11 deletions

View file

@ -16,7 +16,8 @@ postAddTodolistR :: GroupId -> Handler Html
postAddTodolistR groupId = do
list <- runInputPost $ ireq textField "list"
-- TODO: in a newer version, put insertUnique_
_ <- dbIfAuth groupId (insertUnique $ Todolist groupId list)
currentTime <- liftIO getCurrentTime
_ <- dbIfAuth groupId (insertUnique $ Todolist groupId list currentTime)
redirect $ TodolistR groupId
-- TODO: move this to a new handler file