mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(bolt): return not nil
This commit is contained in:
parent
b1396dcae2
commit
60976d1afb
@ -541,7 +541,7 @@ func (d *BoltDb) createObjectTx(tx *bbolt.Tx, bucketID int, props db.ObjectProps
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return nil, b.Put(objID.ToBytes(), str)
|
||||
return object, b.Put(objID.ToBytes(), str)
|
||||
}
|
||||
|
||||
func (d *BoltDb) createObject(bucketID int, props db.ObjectProps, object interface{}) (res interface{}, err error) {
|
||||
|
Loading…
Reference in New Issue
Block a user