mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-11-23 04:40:27 +00:00
agent: set/update and delete contact short link data (#1499)
* agent: set/update and delete contact short link data * delete contact link data, tests * comments * type signature for GHC 8.10.7
This commit is contained in:
1 parent
c1a6647f19
commit
04cbed90fb
8 files changed
+202
-77
No files matched your search
@@ -219,7 +219,7 @@ instance StoreQueueClass q => QueueStoreClass q (PostgresQueueStore q) where
|
||||
Nothing ->
|
||||
addLink q $ \db -> DB.execute db qry (d :. (lnkId, rId))
|
||||
Just (lnkId', _) | lnkId' == lnkId ->
|
||||
addLink q $ \db -> DB.execute db (qry <> " AND (fixed_data IS NULL OR fixed_data != ?)") (d :. (lnkId, rId, fst d))
|
||||
addLink q $ \db -> DB.execute db (qry <> " AND (fixed_data IS NULL OR fixed_data = ?)") (d :. (lnkId, rId, fst d))
|
||||
_ -> throwE AUTH
|
||||
where
|
||||
rId = recipientId sq
|
||||
|
||||
Reference in new issue
Block a user