mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Agent/feature/delete all notifications (#317)
* updates to GHC 8.10.4 * adds delete all notifications handler
This commit is contained in:
committed by
Aiden McClelland
parent
8bb6530e24
commit
00636131d7
@@ -28,5 +28,9 @@ getNotificationsR = runDB $ do
|
||||
Nothing -> pure a
|
||||
Just x -> pure x
|
||||
|
||||
deleteNotificationsR :: Handler ()
|
||||
deleteNotificationsR = do
|
||||
runDB $ deleteWhere ([] :: [Filter Notification])
|
||||
|
||||
deleteNotificationR :: UUID -> Handler ()
|
||||
deleteNotificationR notifId = runDB $ delete (coerce @_ @(Key Notification) notifId)
|
||||
|
||||
Reference in New Issue
Block a user