Skip to content

Commit

Permalink
fix space discoverY
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 7, 2023
1 parent 13ffdf2 commit 73ab1c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/http/services/owncloud/ocgraph/drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ func generateCs3Filters(request *godata.GoDataRequest) ([]*providerpb.ListStorag

func (s *svc) cs3StorageSpaceToDrive(user *userpb.User, space *providerpb.StorageSpace) *libregraph.Drive {
drive := &libregraph.Drive{
DriveAlias: libregraph.PtrString(space.RootInfo.Path),
Id: libregraph.PtrString(space.Id.OpaqueId),
DriveAlias: libregraph.PtrString(space.RootInfo.Path[1:]),
Id: libregraph.PtrString(space.RootInfo.Path),
Name: space.Name,
DriveType: libregraph.PtrString(space.SpaceType),
Root: &libregraph.DriveItem{
Id: libregraph.PtrString(space.Id.OpaqueId),
Id: libregraph.PtrString(space.RootInfo.Path),
Permissions: cs3PermissionsToLibreGraph(user, space.RootInfo.PermissionSet),
},
}
Expand Down

0 comments on commit 73ab1c2

Please sign in to comment.