Skip to content

Commit

Permalink
fix backup history
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Jul 27, 2021
1 parent 0b60039 commit 60713c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data class FolderConfig(
newHistory =
if (newHistory.any { it.successful }) newHistory
else newHistory.plus(history.filter { it.scheduled }.take(1))
return copy(history = newHistory.plus(entry).sortedBy { it.timestamp })
return copy(history = newHistory.plus(entry).sortedByDescending { it.timestamp })
}

fun lastBackup(
Expand Down

0 comments on commit 60713c8

Please sign in to comment.