|
@@ -146,7 +146,7 @@ class MigrationEntity(val passwordEncoder: PasswordEncoder, val queryNativeServi
|
|
|
if (historyData == null || uniqueFieldId == null) return null
|
|
if (historyData == null || uniqueFieldId == null) return null
|
|
|
return historyData
|
|
return historyData
|
|
|
.groupBy { if (byId) it[uniqueFieldId] else it[uniqueField] }
|
|
.groupBy { if (byId) it[uniqueFieldId] else it[uniqueField] }
|
|
|
- .mapValues { (_, items) ->k
|
|
|
|
|
|
|
+ .mapValues { (_, items) ->
|
|
|
items.maxByOrNull {
|
|
items.maxByOrNull {
|
|
|
it[uniqueFieldId.removePrefix("history.")]
|
|
it[uniqueFieldId.removePrefix("history.")]
|
|
|
?.toString()
|
|
?.toString()
|