ussd/common/storage.go

14 lines
235 B
Go
Raw Normal View History

2024-11-03 00:33:52 +01:00
package common
import (
"git.defalsify.org/vise.git/db"
)
func StoreToDb(store *UserDataStore, prefix []byte) db.Db {
innerStore := store.Db
if pfx != nil {
innerStore = NewSubPrefixDb(innerStore, pfx)
}
return innerStore
}