Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Lukasonok <[email protected]>
  • Loading branch information
CalebGerman and roluk authored Sep 6, 2023
1 parent d935e74 commit a94f7b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/saved-views-client/src/client/ApiUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function callITwinApi(
});

if (!response.ok) {
await throwBadResponseCodeError(response, "ITwin API request failed.");
await throwBadResponseCodeError(response, "iTwin API request failed.");
}

return response.json();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ITwinSavedViewsClient implements SavedViewsClient {
getAccessToken: this.getAccessToken,
signal: queyParams.signal,
headers: {
Accept: "application/vnd.bentley.ITwin-platform.v1+json",
Accept: "application/vnd.bentley.itwin-platform.v1+json",
...queyParams.headers,
},
body: queyParams.body,
Expand Down Expand Up @@ -158,7 +158,7 @@ export class ITwinSavedViewsClient implements SavedViewsClient {

async getAllTags(args: GetTagsParams): Promise<TagListResponse> {
const iModelId = args.iModelId ? `&iModelId=${args.iModelId}` : "";
const url = `${this.baseUrl}/tags/?ITwinId=${args.iTwinId}${iModelId}`;
const url = `${this.baseUrl}/tags/?iTwinId=${args.iTwinId}${iModelId}`;
return this.queryITwinApi({
signal: args.signal,
url: url,
Expand Down Expand Up @@ -212,7 +212,7 @@ export class ITwinSavedViewsClient implements SavedViewsClient {

async getAllGroups(args: GetGroupsParams): Promise<GroupListResponse> {
const iModelId = args.iModelId ? `&iModelId=${args.iModelId}` : "";
const url = `${this.baseUrl}/groups/?ITwinId=${args.iTwinId}${iModelId}`;
const url = `${this.baseUrl}/groups/?iTwinId=${args.iTwinId}${iModelId}`;
return this.queryITwinApi({
signal: args.signal,
url: url,
Expand Down

0 comments on commit a94f7b4

Please sign in to comment.