|
|
@ -63,10 +63,10 @@ impl TagApi {
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a list of all tags that are assigned to the list of files
|
|
|
|
/// Returns a list of all tags that are assigned to the list of files
|
|
|
|
#[tracing::instrument(level = "debug", skip_all)]
|
|
|
|
#[tracing::instrument(level = "debug", skip_all)]
|
|
|
|
pub async fn get_tags_for_files(&self, ids: Vec<i64>) -> ApiResult<Vec<TagResponse>> {
|
|
|
|
pub async fn get_tags_for_files(&self, cds: Vec<String>) -> ApiResult<Vec<TagResponse>> {
|
|
|
|
self.emit_and_get(
|
|
|
|
self.emit_and_get(
|
|
|
|
"tags_for_files",
|
|
|
|
"tags_for_files",
|
|
|
|
GetFilesTagsRequest { ids },
|
|
|
|
GetFilesTagsRequest { cds },
|
|
|
|
Some(Duration::from_secs(10)),
|
|
|
|
Some(Duration::from_secs(10)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.await
|
|
|
|
.await
|
|
|
|