forgot update
This commit is contained in:
parent
a20d32ff34
commit
0e88b61947
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ getAdminAlbumDeleteR albumId = do
|
||||||
owner <- runDB $ getJust ownerId
|
owner <- runDB $ getJust ownerId
|
||||||
albumList <- return $ userAlbums owner
|
albumList <- return $ userAlbums owner
|
||||||
newAlbumList <- return $ removeItem albumId albumList
|
newAlbumList <- return $ removeItem albumId albumList
|
||||||
|
runDB $ update ownerId [UserAlbums =. newAlbumList]
|
||||||
-- delete album content
|
-- delete album content
|
||||||
mapM (\a -> runDB $ delete a) (albumContent album)
|
mapM (\a -> runDB $ delete a) (albumContent album)
|
||||||
-- delete album
|
-- delete album
|
||||||
|
|
Loading…
Reference in a new issue