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 87d3315 commit ffe9285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ require (
github.com/mattn/go-sqlite3 v1.14.6
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
)
6 changes: 3 additions & 3 deletions persistence/IdentifiableSqlitePersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (c *IdentifiableSqlitePersistence) Create(correlationId string, item interf
}
// Assign unique id
var newItem interface{}
newItem = cmpersist.CloneObject(item)
newItem = cmpersist.CloneObject(item, c.Prototype)
cmpersist.GenerateObjectId(&newItem)

return c.SqlitePersistence.Create(correlationId, newItem)
Expand All @@ -194,7 +194,7 @@ func (c *IdentifiableSqlitePersistence) Set(correlationId string, item interface

// Assign unique id
var newItem interface{}
newItem = cmpersist.CloneObject(item)
newItem = cmpersist.CloneObject(item, c.Prototype)
cmpersist.GenerateObjectId(&newItem)
row := c.Overrides.ConvertFromPublic(item)
params := c.GenerateParameters(row)
Expand Down Expand Up @@ -241,7 +241,7 @@ func (c *IdentifiableSqlitePersistence) Update(correlationId string, item interf
return nil, nil
}
var newItem interface{}
newItem = cmpersist.CloneObject(item)
newItem = cmpersist.CloneObject(item, c.Prototype)
id := cmpersist.GetObjectId(newItem)

row := c.Overrides.ConvertFromPublic(newItem)
Expand Down

0 comments on commit ffe9285

Please sign in to comment.