Fix: Calling the data repository with the real id

This commit is contained in:
machiav3lli
2021-12-26 00:44:15 +01:00
parent 814052d821
commit 9e022d477d
12 changed files with 18 additions and 16 deletions

View File

@ -21,6 +21,9 @@ class Repository {
@ColumnInfo(typeAffinity = ColumnInfo.BLOB)
var data: Repository? = null
val trueData: Repository?
get() = data?.copy(id = id)
class IdAndDeleted {
@ColumnInfo(name = "_id")
var id = 0L