Skip to content

Commit

Permalink
Merge pull request #73 from apptreesoftware/updating_installation_con…
Browse files Browse the repository at this point in the history
…fig_endpoint

updated installation config fetch
  • Loading branch information
alexisandreason committed Sep 28, 2023
2 parents eeae551 + ee9c10c commit 5908f02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions famis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,9 @@ export class FamisClient {
}

async getInstallationConfigurations(context: QueryContext): Promise<InstallationConfig[]> {
const url = context.buildApiUrl('installationconfigurations');
const resp = await this.http.get<InstallationConfig[]>(url);
return resp.data;
const url = context.buildUrl('installationconfigurations');
const resp = await this.http.get<FamisResponse<InstallationConfig>>(url);
return resp.data.value ?? [];
}

//#region Logbook
Expand Down
2 changes: 1 addition & 1 deletion model/request_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ export function buildEntityUrl(entity: string): string {
return `${basePath}/${entity}`;
}

export const basePath = 'MobileWebServices/apis/360facility/v1';
export const basePath = 'MobileWebServices/apis/360facility/v1';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "facility360",
"version": "1.0.10",
"version": "1.0.11",
"description": "A Node based 360Facility client SDK",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 5908f02

Please sign in to comment.