mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 14:14:53 +09:00
In C2S Offer{Ticket} on local project, insert a TicketUnderProject record
This commit is contained in:
parent
f6903364f4
commit
ca0c7124c1
1 changed files with 6 additions and 2 deletions
|
@ -1140,16 +1140,20 @@ offerTicketC shrUser summary audience offer@(Offer ticket uTarget) = runExceptT
|
||||||
, localTicketDiscuss = did
|
, localTicketDiscuss = did
|
||||||
, localTicketFollowers = fsid
|
, localTicketFollowers = fsid
|
||||||
}
|
}
|
||||||
insert_ TicketProjectLocal
|
tplid <- insert TicketProjectLocal
|
||||||
{ ticketProjectLocalTicket = tid
|
{ ticketProjectLocalTicket = tid
|
||||||
, ticketProjectLocalProject = jid
|
, ticketProjectLocalProject = jid
|
||||||
, ticketProjectLocalAccept = obiidAccept
|
, ticketProjectLocalAccept = obiidAccept
|
||||||
}
|
}
|
||||||
insert_ TicketAuthorLocal
|
talid <- insert TicketAuthorLocal
|
||||||
{ ticketAuthorLocalTicket = ltid
|
{ ticketAuthorLocalTicket = ltid
|
||||||
, ticketAuthorLocalAuthor = pidAuthor
|
, ticketAuthorLocalAuthor = pidAuthor
|
||||||
, ticketAuthorLocalOpen = obiid
|
, ticketAuthorLocalOpen = obiid
|
||||||
}
|
}
|
||||||
|
insert_ TicketUnderProject
|
||||||
|
{ ticketUnderProjectProject = tplid
|
||||||
|
, ticketUnderProjectAuthor = talid
|
||||||
|
}
|
||||||
--insertMany_ $ map (TicketDependency tid) tidsDeps
|
--insertMany_ $ map (TicketDependency tid) tidsDeps
|
||||||
-- insert_ $ Follow pidAuthor fsid False True
|
-- insert_ $ Follow pidAuthor fsid False True
|
||||||
return ltid
|
return ltid
|
||||||
|
|
Loading…
Reference in a new issue