From b7742a0fbaa94e881d1fab1874369838b330a843 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 26 Oct 2021 14:27:16 +0200 Subject: [PATCH] Change reponse type of get_all_tags Signed-off-by: trivernis --- mediarepo-api/src/client_api/tag.rs | 2 +- mediarepo-api/src/tauri_plugin/commands/tag.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediarepo-api/src/client_api/tag.rs b/mediarepo-api/src/client_api/tag.rs index f9f976b..12242e5 100644 --- a/mediarepo-api/src/client_api/tag.rs +++ b/mediarepo-api/src/client_api/tag.rs @@ -29,7 +29,7 @@ impl TagApi { /// Returns a list of all tags stored in the repo #[tracing::instrument(level = "debug", skip(self))] - pub async fn get_all_tags(&self) -> ApiResult> { + pub async fn get_all_tags(&self) -> ApiResult> { self.emit_and_get("all_tags", ()).await } diff --git a/mediarepo-api/src/tauri_plugin/commands/tag.rs b/mediarepo-api/src/tauri_plugin/commands/tag.rs index 72e753f..6a9b11c 100644 --- a/mediarepo-api/src/tauri_plugin/commands/tag.rs +++ b/mediarepo-api/src/tauri_plugin/commands/tag.rs @@ -3,7 +3,7 @@ use crate::tauri_plugin::error::PluginResult; use crate::types::tags::TagResponse; #[tauri::command] -pub async fn get_all_tags(api_state: ApiAccess<'_>) -> PluginResult> { +pub async fn get_all_tags(api_state: ApiAccess<'_>) -> PluginResult> { let api = api_state.api().await?; let all_tags = api.tag.get_all_tags().await?;