fix(be): exit from method on error

This commit is contained in:
Denis Gukov 2022-01-23 20:07:10 +05:00
parent e9e78adf97
commit 0bc9aab31a
3 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View File

@ -8,8 +8,8 @@ web2/.nyc_output
web2/dist/**/*
/config.json
/.dredd/config.json
/database.bolt
/database.boltdb
/database.boltdb.lock
.DS_Store
node_modules/

View File

View File

@ -53,6 +53,10 @@ func (d *BoltDb) ApplyMigration(migration db.Migration) (err error) {
j, err := json.Marshal(migration)
if err != nil {
return err
}
return b.Put([]byte(migration.Version), j)
})
}