Skip to content

Commit

Permalink
WIP: Fix restoring recycle items
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Oct 27, 2021
1 parent 028b279 commit 4f0949d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ func (s *svc) RestoreRecycleItem(ctx context.Context, req *provider.RestoreRecyc
}, nil
}

// TODO: HELP?!?
req.RestoreRef.Path = strings.TrimPrefix(req.RestoreRef.Path, destinationProviderInfo[0].ProviderPath)
res, err := c.RestoreRecycleItem(ctx, req)
if err != nil {
return nil, errors.Wrap(err, "gateway: error calling RestoreRecycleItem")
Expand Down

0 comments on commit 4f0949d

Please sign in to comment.