We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a669d76 commit fa5c6b9Copy full SHA for fa5c6b9
.changeset/beige-seas-reflect.md
@@ -0,0 +1,5 @@
1
+---
2
+"cloudways-js-client": patch
3
4
+
5
+updated get app list to be an array
src/services/Lists/index.ts
@@ -36,7 +36,16 @@ import type {
36
* ```
37
*/
38
export function getAppList(): Promise<AppInfo[]> {
39
- return apiCall("/apps");
+ return apiCall("/apps").then((response) => {
40
+ const appList: AppInfo[] = [];
41
+ for (const app in response.apps) {
42
+ appList.push({
43
+ label: app,
44
+ versions: response.apps[app],
45
+ });
46
+ }
47
+ return appList;
48
49
}
50
51
/**
0 commit comments