Skip to content

Commit

Permalink
Update the model before persisting (#3749)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoon P <antoon@redblom.com>
  • Loading branch information
redblom and antoonp authored May 4, 2023
1 parent c386097 commit d06ee85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/fix-3747.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Fix persisting updates of received shares in json driver

https://github.com/cs3org/reva/pull/3749
1 change: 1 addition & 0 deletions pkg/ocm/share/repository/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ func (m *mgr) UpdateReceivedShare(ctx context.Context, user *userpb.User, share
switch mask {
case "state":
rs.State = share.State
m.model.ReceivedShares[share.Id.OpaqueId].State = share.State
// TODO case "mount_point":
default:
return nil, errtypes.NotSupported("updating " + mask + " is not supported")
Expand Down

0 comments on commit d06ee85

Please sign in to comment.