From 53df30810e9c59bcf8bf34c8f88c94b7f6f53384 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Tue, 18 Dec 2018 15:20:17 +1100 Subject: [PATCH] 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 --- src/sync.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync.d b/src/sync.d index 56474590..b2504527 100644 --- a/src/sync.d +++ b/src/sync.d @@ -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) {