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