Merge pull request #127 from InsanusMokrassar/0.9.6

0.9.6
This commit is contained in:
InsanusMokrassar 2022-02-07 23:11:07 +06:00 committed by GitHub
commit cd3838f321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 0.9.6
* `Repos`:
* `Exposed`:
* Fix in `ExposedOneToManyKeyValueRepo` - now it will not use `deleteIgnoreWhere`
## 0.9.5
* `Versions`:

View File

@ -45,5 +45,5 @@ dokka_version=1.6.10
# Project data
group=dev.inmo
version=0.9.5
android_code_version=95
version=0.9.6
android_code_version=96

View File

@ -48,7 +48,7 @@ open class ExposedOneToManyKeyValueRepo<Key, Value>(
transaction(database) {
toRemove.keys.flatMap { k ->
toRemove[k] ?.mapNotNull { v ->
if (deleteIgnoreWhere { keyColumn.eq(k).and(valueColumn.eq(v)) } > 0 ) {
if (deleteWhere { keyColumn.eq(k).and(valueColumn.eq(v)) } > 0 ) {
k to v
} else {
null