Only process attachments in task arguments

When files are added to an item, the attachments already present must
not be "re-processed".
This commit is contained in:
Eike Kettner
2020-05-24 13:28:21 +02:00
parent 4e49c78e72
commit 1dde43e092
2 changed files with 7 additions and 3 deletions

View File

@ -287,7 +287,7 @@ object QItem {
n <- store.transact(RItem.deleteByIdAndCollective(itemId, collective))
} yield tn + rn + n
def findByFileIds(fileMetaIds: List[Ident]): ConnectionIO[Vector[RItem]] = {
def findByFileIds(fileMetaIds: Seq[Ident]): ConnectionIO[Vector[RItem]] = {
val IC = RItem.Columns
val AC = RAttachment.Columns
val q =