Rename delete_thumbnail command to delete_thumbnails

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

@ -114,7 +114,7 @@ pub async fn save_file_locally(
} }
#[tauri::command] #[tauri::command]
pub async fn delete_thumbnail(api_state: ApiAccess<'_>, id: i64) -> PluginResult<()> { pub async fn delete_thumbnails(api_state: ApiAccess<'_>, id: i64) -> PluginResult<()> {
let api = api_state.api().await?; let api = api_state.api().await?;
api.file.delete_thumbnails(FileIdentifier::ID(id)).await?; api.file.delete_thumbnails(FileIdentifier::ID(id)).await?;

@ -54,7 +54,7 @@ impl<R: Runtime> MediarepoPlugin<R> {
resolve_paths_to_files, resolve_paths_to_files,
add_local_file, add_local_file,
save_file_locally, save_file_locally,
delete_thumbnail delete_thumbnails
]), ]),
} }
} }

Loading…
Cancel
Save