Change reponse type of get_all_tags

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent a0316b01d2
commit b7742a0fba

@ -29,7 +29,7 @@ impl TagApi {
/// Returns a list of all tags stored in the repo /// Returns a list of all tags stored in the repo
#[tracing::instrument(level = "debug", skip(self))] #[tracing::instrument(level = "debug", skip(self))]
pub async fn get_all_tags(&self) -> ApiResult<Vec<String>> { pub async fn get_all_tags(&self) -> ApiResult<Vec<TagResponse>> {
self.emit_and_get("all_tags", ()).await self.emit_and_get("all_tags", ()).await
} }

@ -3,7 +3,7 @@ use crate::tauri_plugin::error::PluginResult;
use crate::types::tags::TagResponse; use crate::types::tags::TagResponse;
#[tauri::command] #[tauri::command]
pub async fn get_all_tags(api_state: ApiAccess<'_>) -> PluginResult<Vec<String>> { pub async fn get_all_tags(api_state: ApiAccess<'_>) -> PluginResult<Vec<TagResponse>> {
let api = api_state.api().await?; let api = api_state.api().await?;
let all_tags = api.tag.get_all_tags().await?; let all_tags = api.tag.get_all_tags().await?;

Loading…
Cancel
Save