fix base url for drives webURL
This commit is contained in:
@@ -3,3 +3,4 @@ Enhancement: Add webURL to space root
|
||||
Add the web url to the space root on the graphAPI.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/4588
|
||||
https://github.com/owncloud/ocis/pull/4774
|
||||
|
||||
@@ -576,11 +576,11 @@ func (g Graph) cs3StorageSpaceToDrive(ctx context.Context, baseURL *url.URL, spa
|
||||
drive.Root.WebDavUrl = libregraph.PtrString(webDavURL.String())
|
||||
}
|
||||
|
||||
webURL, err := url.Parse(g.config.Commons.OcisURL)
|
||||
webURL, err := url.Parse(g.config.Spaces.WebDavBase)
|
||||
if err != nil {
|
||||
g.logger.Error().
|
||||
Err(err).
|
||||
Str("url", g.config.Commons.OcisURL).
|
||||
Str("url", g.config.Spaces.WebDavBase).
|
||||
Msg("failed to parse base url")
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user