mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): exit from method on error
This commit is contained in:
parent
e9e78adf97
commit
0bc9aab31a
2
.gitignore
vendored
2
.gitignore
vendored
@ -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/
|
||||
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user