hotfix drive item property selection
This commit is contained in:
parent
6beb774ba8
commit
126f879f48
@ -115,13 +115,20 @@ func (c Drives) GetItem(
|
|||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
driveID, itemID string,
|
driveID, itemID string,
|
||||||
) (models.DriveItemable, error) {
|
) (models.DriveItemable, error) {
|
||||||
|
options := &drives.ItemItemsDriveItemItemRequestBuilderGetRequestConfiguration{
|
||||||
|
QueryParameters: &drives.ItemItemsDriveItemItemRequestBuilderGetQueryParameters{
|
||||||
|
// FIXME: accept a CallConfig instead of hardcoding the select.
|
||||||
|
Select: DefaultDriveItemProps(),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
di, err := c.Stable.
|
di, err := c.Stable.
|
||||||
Client().
|
Client().
|
||||||
Drives().
|
Drives().
|
||||||
ByDriveId(driveID).
|
ByDriveId(driveID).
|
||||||
Items().
|
Items().
|
||||||
ByDriveItemId(itemID).
|
ByDriveItemId(itemID).
|
||||||
Get(ctx, nil)
|
Get(ctx, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, graph.Wrap(ctx, err, "getting item")
|
return nil, graph.Wrap(ctx, err, "getting item")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user