Fixed a not equal condition in addAssociatedFile.
This commit is contained in:
parent
42bdc9fa2f
commit
ef5a735d47
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ addAssociatedFile :: IKey -> TopFilePath -> WriteHandle -> IO ()
|
||||||
addAssociatedFile ik f = queueDb $ do
|
addAssociatedFile ik f = queueDb $ do
|
||||||
-- If the same file was associated with a different key before,
|
-- If the same file was associated with a different key before,
|
||||||
-- remove that.
|
-- remove that.
|
||||||
deleteWhere [AssociatedFile ==. af, AssociatedKey ==. ik]
|
deleteWhere [AssociatedFile ==. af, AssociatedKey !=. ik]
|
||||||
void $ insertUnique $ Associated ik af
|
void $ insertUnique $ Associated ik af
|
||||||
where
|
where
|
||||||
af = toSFilePath (getTopFilePath f)
|
af = toSFilePath (getTopFilePath f)
|
||||||
|
|
Loading…
Add table
Reference in a new issue