Skip to content

Commit

Permalink
Merge pull request #180 from friggframework/feature/lef-259-frontify-…
Browse files Browse the repository at this point in the history
…functionality-checklist

Feature/lef 259 frontify functionality checklist
  • Loading branch information
roboli authored Jun 14, 2023
2 parents f2f155d + e5a0265 commit a021c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api-module-library/frontify/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Api extends OAuth2Requester {
const response = await this._post(this.buildRequestOptions(ql));
this.assertResponse(response);
return {
projects: response.data.brand.workspaceProjects.items,
projects: response.data.brand.workspaceProjects?.items,
};
}

Expand Down Expand Up @@ -191,7 +191,7 @@ class Api extends OAuth2Requester {
const response = await this._post(this.buildRequestOptions(ql));
this.assertResponse(response);
return {
assets: response.data.workspaceProject.assets.items,
assets: response.data.workspaceProject?.assets.items,
};
}

Expand All @@ -213,7 +213,7 @@ class Api extends OAuth2Requester {
const response = await this._post(this.buildRequestOptions(ql));
this.assertResponse(response);
return {
folders: response.data.workspaceProject.browse.folders.items,
folders: response.data.workspaceProject?.browse.folders.items,
};
}

Expand Down
2 changes: 1 addition & 1 deletion api-module-library/frontify/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Manager extends ModuleManager {
const frontifyParams = {
client_id: process.env.FRONTIFY_CLIENT_ID,
client_secret: process.env.FRONTIFY_CLIENT_SECRET,
redirect_uri: `${process.env.FRONTIFY_REDIRECT_URI}/frontify`,
redirect_uri: `${process.env.REDIRECT_URI}/frontify`,
scope: process.env.FRONTIFY_SCOPE,
delegate: instance,
};
Expand Down

0 comments on commit a021c7e

Please sign in to comment.