From c3665eb198ded8d29c89421cd38133fc3bd214bd Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Wed, 10 May 2023 10:15:42 +0000 Subject: [PATCH] mismatch RemoteShareId / RemoteShareID --- pkg/ocm/share/repository/nextcloud/nextcloud.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/ocm/share/repository/nextcloud/nextcloud.go b/pkg/ocm/share/repository/nextcloud/nextcloud.go index a1998a9d3b..801a75b51f 100644 --- a/pkg/ocm/share/repository/nextcloud/nextcloud.go +++ b/pkg/ocm/share/repository/nextcloud/nextcloud.go @@ -79,7 +79,7 @@ type GranteeAltMap struct { // ShareAltMap is an alternative map to JSON-unmarshal a Share. type ShareAltMap struct { ID *ocm.ShareId `json:"id"` - RemoteShareId string `json:"remote_share_id"` + RemoteShareID string `json:"remote_share_id"` Permissions *ocm.SharePermissions `json:"permissions"` Grantee *GranteeAltMap `json:"grantee"` Owner *userpb.UserId `json:"owner"` @@ -310,7 +310,7 @@ func (sm *Manager) ListReceivedShares(ctx context.Context, user *userpb.User) ([ } res = append(res, &ocm.ReceivedShare{ Id: altResultShare.ID, - RemoteShareId: altResultShare.RemoteShareId, + RemoteShareId: altResultShare.RemoteShareID, // sic, see https://github.com/cs3org/reva/pull/3852#discussion_r1189681465 Grantee: &provider.Grantee{ Id: altResultShare.Grantee.ID, }, @@ -348,7 +348,7 @@ func (sm *Manager) GetReceivedShare(ctx context.Context, user *userpb.User, ref } return &ocm.ReceivedShare{ Id: altResultShare.ID, - RemoteShareId: altResultShare.RemoteShareId, + RemoteShareId: altResultShare.RemoteShareID, // sic, see https://github.com/cs3org/reva/pull/3852#discussion_r1189681465 Grantee: &provider.Grantee{ Id: altResultShare.Grantee.ID, }, @@ -394,7 +394,7 @@ func (sm *Manager) UpdateReceivedShare(ctx context.Context, user *userpb.User, s } return &ocm.ReceivedShare{ Id: altResultShare.ID, - RemoteShareId: altResultShare.RemoteShareId, + RemoteShareId: altResultShare.RemoteShareID, // sic, see https://github.com/cs3org/reva/pull/3852#discussion_r1189681465 Grantee: &provider.Grantee{ Id: altResultShare.Grantee.ID, },