1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 16:54:53 +09:00

C2S: Fix bug: undoC: When deleting TicketResolve, ticketStatus wasn't updated

This commit is contained in:
fr33domlover 2020-08-06 07:14:06 +00:00
parent 9f34106a87
commit be3cf50283

View file

@ -2133,7 +2133,10 @@ undoC (Entity _pidUser personUser) sharerUser summary audience undo@(Undo uObjec
tr <- getJust trid
delete trlid
delete trid
return $ Just $ ticketResolveTicket tr
let ltid = ticketResolveTicket tr
tid <- localTicketTicket <$> getJust ltid
update tid [TicketStatus =. TSTodo]
return $ Just ltid
deleteResolve (Right ractid) = do
Entity trrid trr <- MaybeT $ lift $ getBy $ UniqueTicketResolveRemoteActivity ractid
lift $ lift $ do
@ -2141,7 +2144,10 @@ undoC (Entity _pidUser personUser) sharerUser summary audience undo@(Undo uObjec
tr <- getJust trid
delete trrid
delete trid
return $ Just $ ticketResolveTicket tr
let ltid = ticketResolveTicket tr
tid <- localTicketTicket <$> getJust ltid
update tid [TicketStatus =. TSTodo]
return $ Just ltid
pushCommitsC
:: (Entity Person, Sharer)