mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-11 10:16:39 +02:00
check displayName rather than description (#290)
* In testing, 'description' and 'displayName' were the same, but in reality we are checking against the 'displayName' value as this is what we are asking the user to input, thus we need to check against displayName
This commit is contained in:
parent
b46d3d62b1
commit
53df30810e
|
@ -1760,9 +1760,9 @@ final class SyncEngine
|
|||
JSONValue siteQuery = onedrive.o365SiteSearch(o365SharedLibraryName);
|
||||
|
||||
foreach (searchResult; siteQuery["value"].array) {
|
||||
// Need an 'exclusive' match here with as entered
|
||||
if (o365SharedLibraryName == searchResult["description"].str){
|
||||
// 'description' matches search request
|
||||
// Need an 'exclusive' match here with o365SharedLibraryName as entered
|
||||
if (o365SharedLibraryName == searchResult["displayName"].str){
|
||||
// 'displayName' matches search request
|
||||
site_id = searchResult["id"].str;
|
||||
JSONValue siteDriveQuery = onedrive.o365SiteDrives(site_id);
|
||||
foreach (driveResult; siteDriveQuery["value"].array) {
|
||||
|
|
Loading…
Reference in a new issue