Skip to content

Commit

Permalink
Fix for error "unknownField '.deleted'" during sync.
Browse files Browse the repository at this point in the history
Upping versionCode to 73.
  • Loading branch information
Dima-Android committed Jun 4, 2024
1 parent 2729ce0 commit d471d8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import timber.log.Timber
class FieldKeys {
class Collection {
companion object {
val knownDataKeys = listOf("key", "version", "name", "parentCollection", "relations")
val knownDataKeys =
listOf("key", "version", "name", "parentCollection", "relations", "deleted")
}
}

Expand Down Expand Up @@ -224,7 +225,7 @@ class FieldKeys {

class Search {
companion object {
val knownDataKeys = listOf("key", "version", "name", "conditions")
val knownDataKeys = listOf("key", "version", "name", "conditions", "deleted")
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class ReadCollectionsDbRequest(
.and()
.deleted(false)
.and()
.isTrash(false)
.and()
.keyNotIn(this.excludedKeys)
.findAll()
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BuildConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object BuildConfig {
const val compileSdkVersion = 34
const val targetSdk = 33

val versionCode = 72 // Must be updated on every build
val versionCode = 73 // Must be updated on every build
val version = Version(
major = 1,
minor = 0,
Expand Down

0 comments on commit d471d8a

Please sign in to comment.