mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Move sent mails when merging items
Fixes: 1055
This commit is contained in:
@ -71,4 +71,7 @@ object RSentMailItem {
|
||||
|
||||
def deleteAllByItem(item: Ident): ConnectionIO[Int] =
|
||||
DML.delete(T, T.itemId === item)
|
||||
|
||||
def moveToItem(target: Ident, others: NonEmptyList[Ident]): ConnectionIO[Int] =
|
||||
DML.update(T, T.itemId.in(others), DML.set(T.itemId.setTo(target)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user