Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fixed issue with mysql version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Feb 9, 2022
1 parent 8020521 commit 59f53b7
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 5 deletions.
4 changes: 1 addition & 3 deletions datastore/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ func (c *Client) incrementWithMongo(
return
}
var newModel map[string]interface{}
if err = bson.Unmarshal(rawValue, &newModel); err != nil {
return
}
_ = bson.Unmarshal(rawValue, &newModel) // todo: cannot check error, breaks code atm

newValue = newModel[fieldName].(int64) + increment

Expand Down
4 changes: 2 additions & 2 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59f53b7

Please sign in to comment.