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 f5e9ae6 commit b750f27Copy full SHA for b750f27
src/index.ts
@@ -46,7 +46,9 @@ export class SquareCloudAPI {
46
async getApplication(appId: string): Promise<Application> {
47
validateString(appId, 'APP_ID');
48
49
- const { applications } = await this.apiManager.user();
+ const userData = await this.apiManager.user();
50
+ const applications = userData.applications || [];
51
+
52
const appData = applications.find((app) => app.id === appId);
53
54
if (!appData) {
0 commit comments