Skip to content

Commit

Permalink
Merge pull request #853 from abstractmj/fea-bcs-lb
Browse files Browse the repository at this point in the history
fix: fix put function of storage; issue #840
  • Loading branch information
DeveloperJim authored Apr 7, 2021
2 parents 115d34b + d1e9e9d commit c9d5e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcs-services/bcs-storage/storage/actions/lib/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (a *Store) Put(ctx context.Context, resourceType string, data operator.M, o
if len(opt.UpdateTimeKey) != 0 {
data[opt.UpdateTimeKey] = timeNow
}
if err := a.mDriver.Table(resourceType).Upsert(ctx, countCond, operator.M{"$set": data}); err != nil {
if err := a.mDriver.Table(resourceType).Upsert(ctx, opt.Cond, operator.M{"$set": data}); err != nil {
return err
}
return nil
Expand Down

0 comments on commit c9d5e23

Please sign in to comment.