Skip to content

Commit

Permalink
Updated Services
Browse files Browse the repository at this point in the history
Missing $ in filter parameter
  • Loading branch information
bcameron1231 authored Apr 13, 2018
1 parent 2393fc5 commit 1a5ad62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class SPSearchService {

}
public async getHubID(hubURL: string): Promise<IHubSiteData> {
let url = this.siteURL + "/_api/HubSites?filter=SiteUrl eq '" + hubURL + "'";
let url = this.siteURL + "/_api/HubSites?$filter=SiteUrl eq '" + hubURL + "'";
return this.spHttpClient.get(url, SPHttpClient.configurations.v1, {
headers: {
'Accept': 'application/json;odata=nometadata',
Expand Down Expand Up @@ -118,4 +118,4 @@ export class SPSearchService {
});

}
}
}

0 comments on commit 1a5ad62

Please sign in to comment.