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:
abraunegg 2018-12-18 15:20:17 +11:00 committed by Norbert Preining
parent b46d3d62b1
commit 53df30810e

View file

@ -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) {