Skip to content

Commit

Permalink
Update the model before persisting (cs3org#3749)
Browse files Browse the repository at this point in the history
Co-authored-by: Antoon P <[email protected]>
  • Loading branch information
2 people authored and gmgigi96 committed Jun 28, 2023
1 parent 395b876 commit b97ae71
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 b97ae71

Please sign in to comment.