Trash feature done

This commit is contained in:
2020-08-17 21:18:01 +02:00
parent 15de81394c
commit 5d9ca85b22
15 changed files with 234 additions and 51 deletions
@@ -164,7 +164,7 @@ internal class NoteRepositoryImpl(private val db: Database) : NoteRepository {
if (tag == null) return db.notes.count { (it.userId eq userId) and (Notes.deleted eq deleted) }
return db.sequenceOf(Tags).count {
(it.name eq tag) and (it.note.userId eq userId) and (Notes.deleted eq deleted)
(it.name eq tag) and (it.note.userId eq userId) and (it.note.deleted eq deleted)
}
}
}