mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Fix build of PersistentStoreCommand
This commit is contained in:
@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user