File tree Expand file tree Collapse file tree
src/main/kotlin/com/sakethh/linkora/data/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ import com.sakethh.linkora.utils.Result
1515import kotlinx.serialization.encodeToString
1616import kotlinx.serialization.json.Json
1717import kotlinx.serialization.json.encodeToJsonElement
18- import org.jetbrains.exposed.sql.*
1918import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
20- import org.jetbrains.exposed.sql.transactions.TransactionManager
19+ import org.jetbrains.exposed.sql.and
20+ import org.jetbrains.exposed.sql.deleteWhere
21+ import org.jetbrains.exposed.sql.insertAndGetId
2122import org.jetbrains.exposed.sql.transactions.transaction
23+ import org.jetbrains.exposed.sql.update
2224import java.time.Instant
2325
2426class LinksImplementation : LinksRepository {
@@ -395,6 +397,11 @@ class LinksImplementation : LinksRepository {
395397 deleteDuplicateLinksDTO.linkIds.toString().substringBefore(" ]" ).substringAfter(" [" ).trim()
396398 } )"
397399 )
400+ TombStoneHelper .insert(
401+ payload = Json .encodeToString(deleteDuplicateLinksDTO),
402+ operation = LinkRoute .DELETE_DUPLICATE_LINKS .name,
403+ deletedAt = eventTimestamp
404+ )
398405 }
399406 Result .Success (
400407 response = TimeStampBasedResponse (
You can’t perform that action at this time.
0 commit comments