🩹 fix reset

This commit is contained in:
Fenny
2020-11-06 01:47:17 +01:00
parent ae83364fc9
commit 63e8f5bd5c

View File

@@ -74,7 +74,7 @@ func New(config ...Config) *Storage {
db := client.Database(cfg.Database)
col := db.Collection(cfg.Collection)
if cfg.Clear {
if cfg.Reset {
if err = col.Drop(context.Background()); err != nil {
panic(err)
}