summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/bitcask_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/bitcask_store.go b/app/bitcask_store.go
index d79706e..0c6e897 100644
--- a/app/bitcask_store.go
+++ b/app/bitcask_store.go
@@ -34,7 +34,7 @@ func (s *BitcaskStore) Migrate(collection, id string) error {
buf := make([]byte, 8)
binary.BigEndian.PutUint64(buf, uint64(oldViews))
- err = s.db.Put([]byte(fmt.Sprintf("/views/%s/%s", id)), buf)
+ err = s.db.Put([]byte(fmt.Sprintf("/views/%s/%s", collection, id)), buf)
if err != nil {
err := fmt.Errorf("error storing new views for %s: %w", id, err)
return err