limit to requested remote
This commit is contained in:
parent
354aafce1a
commit
3c652e1499
1 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,10 @@ recordContentIdentifier h u cid k = queueDb h $ do
|
|||
|
||||
getContentIdentifiers :: ContentIdentifierHandle -> UUID -> Key -> IO [ContentIdentifier]
|
||||
getContentIdentifiers (ContentIdentifierHandle h) u k = H.queryDbQueue h $ do
|
||||
l <- selectList [ContentIdentifiersKey ==. toSKey k] []
|
||||
l <- selectList
|
||||
[ ContentIdentifiersKey ==. toSKey k
|
||||
, ContentIdentifiersRemote ==. u
|
||||
] []
|
||||
return $ map (contentIdentifiersCid . entityVal) l
|
||||
|
||||
getContentIdentifierKeys :: ContentIdentifierHandle -> UUID -> ContentIdentifier -> IO [Key]
|
||||
|
|
Loading…
Reference in a new issue