From 158ad789ecf6e24431cecf6cdbdefbe020abb4dd Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Sun, 21 Aug 2022 18:15:44 +0000 Subject: [PATCH] C2S: In automatic Grant upon Deck creation, insert CollabTopicAccept record Since that table being added, a Collab without a CollabTopicAccept is considered an open proposal/invitation waiting for completion. So inserting the CollabTopicAccept is now required for making the Grant valid and active. --- src/Vervis/API.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Vervis/API.hs b/src/Vervis/API.hs index e4a64fc..8f452df 100644 --- a/src/Vervis/API.hs +++ b/src/Vervis/API.hs @@ -1199,6 +1199,7 @@ createTicketTrackerC (Entity pidUser personUser) senderActor summary audience tr insertCollab did obiidGrant = do cid <- insert Collab insert_ $ CollabTopicLocalDeck cid did + insert_ $ CollabTopicAccept cid obiidGrant insert_ $ CollabSenderLocal cid obiidGrant insert_ $ CollabRecipLocal cid pidUser insert_ $ CollabFulfillsLocalTopicCreation cid