eventstore: fix migrations annoyingly rerunning.

This commit is contained in:
fiatjaf
2025-08-05 13:09:50 -03:00
parent d79793c0f4
commit 144f4a4740
3 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ func (b *BoltBackend) migrate() error {
val := bucket.Get([]byte("version"))
var version uint16 = target
if val == nil {
if val != nil {
version = binary.BigEndian.Uint16(val)
}