Fix build of PersistentStoreCommand

This commit is contained in:
2023-03-24 22:50:35 -07:00
parent 2d90f294c8
commit 02a5d02dad

View File

@ -24,7 +24,7 @@ class PersistentStoreCommand(
when (args[0]) { when (args[0]) {
"stats" -> { "stats" -> {
statsFeature.persistence.value.stores.forEach { (name, store) -> statsFeature.persistence.stores.forEach { (name, store) ->
val counts = store.transact { val counts = store.transact {
entityTypes.associateWith { type -> getAll(type).size() }.toSortedMap() entityTypes.associateWith { type -> getAll(type).size() }.toSortedMap()
} }
@ -43,7 +43,7 @@ class PersistentStoreCommand(
val storeName = args[1] val storeName = args[1]
val entityTypeName = args[2] val entityTypeName = args[2]
val store = statsFeature.persistence.value.store(storeName) val store = statsFeature.persistence.store(storeName)
store.transact { store.transact {
val entities = getAll(entityTypeName).take(3) val entities = getAll(entityTypeName).take(3)
for (entity in entities) { for (entity in entities) {
@ -62,7 +62,7 @@ class PersistentStoreCommand(
val storeName = args[1] val storeName = args[1]
val entityTypeName = args[2] val entityTypeName = args[2]
val store = statsFeature.persistence.value.store(storeName) val store = statsFeature.persistence.store(storeName)
store.transact { store.transact {
store.deleteAllEntities(entityTypeName) store.deleteAllEntities(entityTypeName)
} }