Show deleted notes count

This commit is contained in:
2020-08-19 00:16:00 +02:00
parent a98d6e8e64
commit 8ccd7f6058
3 changed files with 5 additions and 2 deletions
@@ -47,6 +47,7 @@ class NoteService(
fun trash(userId: Int, uuid: UUID) = noteRepository.delete(userId, uuid, permanent = false)
fun restore(userId: Int, uuid: UUID) = noteRepository.restore(userId, uuid)
fun delete(userId: Int, uuid: UUID) = noteRepository.delete(userId, uuid, permanent = true)
fun countDeleted(userId: Int) = noteRepository.count(userId, deleted = true)
}