Skip to content

Commit f648d6a

Browse files
committed
fix(archive): add eventTimestamp for lastModified in archiveMultipleItems
1 parent e9442d1 commit f648d6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/kotlin/com/sakethh/linkora/data/repository/MultiActionRepoImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MultiActionRepoImpl(
5454
updatedRowsCount += LinksTable.update(where = {
5555
LinksTable.id.inList(archiveMultipleItemsDTO.linkIds)
5656
}) {
57+
it[lastModified] = eventTimestamp
5758
it[linkType] = LinkType.ARCHIVE_LINK.name
5859
}
5960
}
@@ -62,6 +63,7 @@ class MultiActionRepoImpl(
6263
updatedRowsCount += FoldersTable.update(where = {
6364
FoldersTable.id.inList(archiveMultipleItemsDTO.folderIds)
6465
}) {
66+
it[lastModified] = eventTimestamp
6567
it[isFolderArchived] = true
6668
}
6769
}

0 commit comments

Comments
 (0)