@narrative.io/data-collaboration-sdk-ts 0.0.38 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,8 +12,9 @@ class InstallationsApi extends BaseApi {
|
|
|
12
12
|
* @returns {Promise<ApiRecords<Installation>>} - Promise resolving with the list of installations.
|
|
13
13
|
*/
|
|
14
14
|
async getInstallations(appCategory) {
|
|
15
|
-
const appCategoryQuery = `?app_category=${appCategory
|
|
16
|
-
|
|
15
|
+
const appCategoryQuery = appCategory !== undefined ? `?app_category=${appCategory}` : '';
|
|
16
|
+
const url = `${resourceName}${appCategoryQuery}`;
|
|
17
|
+
return await this.get(url);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
export { InstallationsApi };
|