diff --git a/CHANGELOG.md b/CHANGELOG.md index 892699f1979..2e34e39cab8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 0.9.6 +* `Repos`: + * `Exposed`: + * Fix in `ExposedOneToManyKeyValueRepo` - now it will not use `deleteIgnoreWhere` + ## 0.9.5 * `Versions`: diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/ExposedOneToManyKeyValueRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/ExposedOneToManyKeyValueRepo.kt index 6d203842e98..20a0e57af1c 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/ExposedOneToManyKeyValueRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/onetomany/ExposedOneToManyKeyValueRepo.kt @@ -48,7 +48,7 @@ open class ExposedOneToManyKeyValueRepo( 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