mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-02 13:11:13 +00:00
fix in ExposedOneToManyKeyValueRepo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user