cave/store: fix clean_trend_tag()

This commit is contained in:
Astro 2022-11-14 20:55:48 +01:00
parent e0fa34f68a
commit 5211cf1692

View File

@ -279,8 +279,10 @@ impl Store {
let mut cmd = redis::pipe();
for (name, _) in &tag.other {
cmd.hdel(tag_key(language, &tag.name), name)
.ignore();
if &name[..2] == "t:" {
cmd.hdel(tag_key(language, &tag.name), name)
.ignore();
}
}
cmd.query_async(&mut self.clone()).await
}