fix invalid outer transaction in clear_unused_tags()

This commit is contained in:
Damien Elmes 2021-04-30 19:09:02 +10:00
parent cfb2a382b1
commit 449e3cc79d

View file

@ -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> {