Skip to content

Commit

Permalink
refactor: Use k parameter to deleteFirstKStatuses (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton authored Oct 30, 2024
1 parent 0f5fa82 commit cdbeb89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DeveloperToolsUseCase @Inject constructor(
*/
suspend fun deleteFirstKStatuses(accountId: Long, k: Int) {
transactionProvider {
val ids = timelineDao.getMostRecentNStatusIds(accountId, 40)
val ids = timelineDao.getMostRecentNStatusIds(accountId, k)
timelineDao.deleteRange(accountId, ids.last(), ids.first())
}
}
Expand Down

0 comments on commit cdbeb89

Please sign in to comment.