fix(be): adding user to project team for BoltDB

This commit is contained in:
Denis Gukov 2022-10-22 01:47:43 +05:00
parent 1ce64c4ce5
commit aa46a392d7

View File

@ -442,7 +442,7 @@ func (d *BoltDb) createObject(bucketID int, props db.ObjectProps, object interfa
reflect.Uint16, reflect.Uint16,
reflect.Uint32, reflect.Uint32,
reflect.Uint64: reflect.Uint64:
//if idValue.Int() == 0 { if idValue.Int() == 0 {
id, err3 := b.NextSequence() id, err3 := b.NextSequence()
if err3 != nil { if err3 != nil {
return err3 return err3
@ -451,7 +451,7 @@ func (d *BoltDb) createObject(bucketID int, props db.ObjectProps, object interfa
id = MaxID - id id = MaxID - id
} }
idValue.SetInt(int64(id)) idValue.SetInt(int64(id))
//} }
objID = intObjectID(idValue.Int()) objID = intObjectID(idValue.Int())
case reflect.String: case reflect.String: