Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions packages/contentstack-import/src/lib/import/marketplace-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,16 +515,21 @@ module.exports = class ImportMarketplaceApps {
return Promise.resolve();
}

return this.httpClient
.put(`${this.developerHubBaseUrl}/installations/${uid}`, payload)
.then(({ data }) => {
if (data.message) {
log(this.config, formatError(data.message), 'success');
} else {
log(this.config, `${app.manifest.name} app config updated successfully.!`, 'success');
}
})
.catch((error) => log(this.config, formatError(error), 'error'));
let installation = this.client
.organization(this.config.org_uid)
.app(app.manifest.uid)
.installation(uid)

installation = Object.assign(installation, payload)

return installation
.update()
.then(async data => {
if (data) {
log(this.config, `${app.manifest.name} app config updated successfully.!`, 'success');
}
})
.catch((error) => log(this.config, formatError(error), 'error'))
}

validateAppName(name) {
Expand Down