Skip to content

Commit

Permalink
Update the model before persisting
Browse files Browse the repository at this point in the history
  • Loading branch information
antoonp committed Mar 24, 2023
1 parent 31fb861 commit 206a215
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/issues/3747
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 206a215

Please sign in to comment.