Put back download url
This commit is contained in:
parent
bf3b232319
commit
368e5e9531
@ -4,6 +4,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alcionai/corso/src/internal/common/ptr"
|
"github.com/alcionai/corso/src/internal/common/ptr"
|
||||||
|
"github.com/alcionai/corso/src/internal/common/str"
|
||||||
"github.com/microsoftgraph/msgraph-sdk-go/models"
|
"github.com/microsoftgraph/msgraph-sdk-go/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -224,17 +225,17 @@ func ToCorsoDriveItemable(item models.DriveItemable) CorsoDriveItemable {
|
|||||||
// Hacky way to cache the download url. Thats all we use from additional data
|
// Hacky way to cache the download url. Thats all we use from additional data
|
||||||
// Otherwise, we'll hold a reference to the underlying store which will consume
|
// Otherwise, we'll hold a reference to the underlying store which will consume
|
||||||
// lot more memory.
|
// lot more memory.
|
||||||
// if item.GetFile() != nil {
|
if item.GetFile() != nil {
|
||||||
// ad := make(map[string]interface{})
|
ad := make(map[string]interface{})
|
||||||
// for _, key := range downloadURLKeys {
|
for _, key := range downloadURLKeys {
|
||||||
// if v, err := str.AnyValueToString(key, item.GetAdditionalData()); err == nil {
|
if v, err := str.AnyValueToString(key, item.GetAdditionalData()); err == nil {
|
||||||
// ad[key] = v
|
ad[key] = v
|
||||||
// break
|
break
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// cdi.AdditionalData = ad
|
cdi.AdditionalData = ad
|
||||||
// }
|
}
|
||||||
|
|
||||||
if item.GetFolder() != nil {
|
if item.GetFolder() != nil {
|
||||||
cdi.Folder = &folderDriveItem{
|
cdi.Folder = &folderDriveItem{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user