✨ Wipe all old stickers keys (sorry)
This commit is contained in:
parent
62ba8b5634
commit
cb4189a1ed
|
@ -46,6 +46,14 @@ func dbInit() {
|
||||||
)
|
)
|
||||||
errCheck(err)
|
errCheck(err)
|
||||||
|
|
||||||
|
err = db.Update(func(tx *buntdb.Tx) error {
|
||||||
|
return tx.AscendKeys("user:*:sticker:*", func(key, val string) bool {
|
||||||
|
tx.Delete(key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
})
|
||||||
|
errCheck(err)
|
||||||
|
|
||||||
select {}
|
select {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue