From 9280dd99a49c8f7592f6c03468036f3c7b95f685 Mon Sep 17 00:00:00 2001 From: Luca Rossetto Date: Sat, 30 Sep 2023 12:27:53 +0200 Subject: [PATCH] Minor fix in media collection cli command --- .../main/kotlin/dev/dres/api/cli/MediaCollectionCommand.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/dev/dres/api/cli/MediaCollectionCommand.kt b/backend/src/main/kotlin/dev/dres/api/cli/MediaCollectionCommand.kt index 6aec752c..70025e19 100644 --- a/backend/src/main/kotlin/dev/dres/api/cli/MediaCollectionCommand.kt +++ b/backend/src/main/kotlin/dev/dres/api/cli/MediaCollectionCommand.kt @@ -205,9 +205,12 @@ class MediaCollectionCommand(private val config: Config) : ).flag(default = false) override fun run() { - println("Available media collections ${DbMediaCollection.all().size()}") + + val collections = MediaCollectionManager.getCollections() + + println("Available media collections ${collections.size}") if (this.plain) { - MediaCollectionManager.getCollections().forEach(::println) + collections.forEach(::println) } else { println( table {