mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix invalid outer transaction in clear_unused_tags()
This commit is contained in:
parent
cfb2a382b1
commit
449e3cc79d
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ use crate::{backend_proto as pb, prelude::*};
|
|||
|
||||
impl TagsService for Backend {
|
||||
fn clear_unused_tags(&self, _input: pb::Empty) -> Result<pb::OpChangesWithCount> {
|
||||
self.with_col(|col| col.transact_no_undo(|col| col.clear_unused_tags().map(Into::into)))
|
||||
self.with_col(|col| col.clear_unused_tags().map(Into::into))
|
||||
}
|
||||
|
||||
fn all_tags(&self, _input: pb::Empty) -> Result<pb::StringList> {
|
||||
|
|
Loading…
Reference in a new issue