fix(bolt): return not nil

This commit is contained in:
fiftin 2024-03-08 18:13:16 +01:00
parent b1396dcae2
commit 60976d1afb

View File

@ -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) {