fix in ExposedOneToManyKeyValueRepo

This commit is contained in:
InsanusMokrassar committed 2022-02-07 20:43:43 +06:00
1 parent 506e937a68
commit 87a3f61ca6
2 files changed
+5 -1

No files matched your search

@@ -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