diff --git a/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt index fd7d461..3237b03 100644 --- a/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt @@ -24,7 +24,7 @@ class PersistentStoreCommand( when (args[0]) { "stats" -> { - statsFeature.persistence.value.stores.forEach { (name, store) -> + statsFeature.persistence.stores.forEach { (name, store) -> val counts = store.transact { entityTypes.associateWith { type -> getAll(type).size() }.toSortedMap() } @@ -43,7 +43,7 @@ class PersistentStoreCommand( val storeName = args[1] val entityTypeName = args[2] - val store = statsFeature.persistence.value.store(storeName) + val store = statsFeature.persistence.store(storeName) store.transact { val entities = getAll(entityTypeName).take(3) for (entity in entities) { @@ -62,7 +62,7 @@ class PersistentStoreCommand( val storeName = args[1] val entityTypeName = args[2] - val store = statsFeature.persistence.value.store(storeName) + val store = statsFeature.persistence.store(storeName) store.transact { store.deleteAllEntities(entityTypeName) }