fix base url for drives webURL

This commit is contained in:
Michael Barz
2022-10-10 17:07:32 +02:00
parent 69ac7b6944
commit dd6c60d548
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
+2 -2
View File
@@ -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
}