Wipe all old stickers keys (sorry)

This commit is contained in:
Maxim Lebedev 2017-12-27 21:26:41 +05:00
parent 62ba8b5634
commit cb4189a1ed
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,14 @@ func dbInit() {
)
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 {}
}