Skip to content

Commit

Permalink
add drive alias
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 26, 2023
1 parent 9384f00 commit a88d357
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/http/services/owncloud/ocgraph/drives.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ func generateCs3Filters(request *godata.GoDataRequest) ([]*providerpb.ListStorag

func (s *svc) cs3StorageSpaceToDrive(space *providerpb.StorageSpace) *libregraph.Drive {
drive := &libregraph.Drive{
Id: libregraph.PtrString(space.Id.OpaqueId),
Name: space.Name,
DriveType: libregraph.PtrString(space.SpaceType),
DriveAlias: libregraph.PtrString(space.SpaceType + "/" + space.Name),
Id: libregraph.PtrString(space.Id.OpaqueId),
Name: space.Name,
DriveType: libregraph.PtrString(space.SpaceType),
Root: &libregraph.DriveItem{
Id: libregraph.PtrString(space.Id.OpaqueId),
Permissions: cs3PermissionsToLibreGraph(space.RootInfo.PermissionSet),
Expand Down

0 comments on commit a88d357

Please sign in to comment.