Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Apr 5, 2021
1 parent fa5141e commit 7d71a50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.16
require (
github.com/pip-services3-go/pip-services3-commons-go v1.1.0
github.com/pip-services3-go/pip-services3-components-go v1.1.0
github.com/pip-services3-go/pip-services3-data-go v1.0.7
github.com/pip-services3-go/pip-services3-data-go v1.1.0
github.com/stretchr/testify v1.7.0
go.mongodb.org/mongo-driver v1.5.1
)
2 changes: 1 addition & 1 deletion persistence/IdentifiableMongoDbPersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (c *IdentifiableMongoDbPersistence) Update(correlationId string, item inter
if item == nil { //|| item.id == nil
return nil, nil
}
newItem := cmpersist.CloneObject(item)
newItem := cmpersist.CloneObject(item, c.Prototype)
id := cmpersist.GetObjectId(newItem)
filter := bson.M{"_id": id}
update := bson.D{{"$set", newItem}}
Expand Down
2 changes: 1 addition & 1 deletion persistence/MongoDbPersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func (c *MongoDbPersistence) Create(correlationId string, item interface{}) (res
return nil, nil
}
var newItem interface{}
newItem = cmpersist.CloneObject(item)
newItem = cmpersist.CloneObject(item, c.Prototype)
newItem = c.Overrides.ConvertFromPublic(newItem)
insRes, insErr := c.Collection.InsertOne(c.Connection.Ctx, newItem)
newItem = c.Overrides.ConvertToPublic(newItem)
Expand Down

0 comments on commit 7d71a50

Please sign in to comment.