Skip to content

Commit

Permalink
fix(install): hardfix 'authentication' field (must be boolean)
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Feb 12, 2021
1 parent 1342f89 commit c457517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/methods/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default (self, appId, redirect = false, appBody) => {
'slug',
'paid',
'version',
'version_date',
'type',
'load_events',
'script_uri',
Expand All @@ -49,9 +48,10 @@ export default (self, appId, redirect = false, appBody) => {

body.state = 'active'
body.status = 'active'
body.authentication = Boolean(storeApp.authentication)
body.admin_settings = storeApp.admin_settings || {}
body.modules = storeApp.modules || {}
body.version_date = new Date(storeApp.version_date).toISOString()
body.version_date = new Date().toISOString()

return ecomAuth
.requestApi('/applications.json', 'post', body)
Expand Down

0 comments on commit c457517

Please sign in to comment.