Skip to content

Commit

Permalink
fix: typos in upgrades scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Jun 26, 2023
1 parent 1968618 commit 52f968c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions upgrade.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export const upgradeScripts = [
function v1_1_4(context, props) {
const result = {
config: null,
actions: [],
feedbacks: [],
updatedConfig: null,
updatedActions: [],
updatedFeedbacks: [],
}

for (const action of props.actions) {
// set default content-type on older actions
if (['post', 'put', 'patch'].includes(action.actionId)) {
if (action.options.contenttype === undefined) {
action.options.contenttype = 'application/json'
result.actions.push(action)
result.updatedActions.push(action)
}
}
}
Expand All @@ -21,14 +21,14 @@ export const upgradeScripts = [

function v1_1_6(context, props) {
const result = {
config: null,
actions: [],
feedbacks: [],
updatedConfig: null,
updatedActions: [],
updatedFeedbacks: [],
}

if (props.config && props.config.rejectUnauthorized === undefined) {
props.config.rejectUnauthorized = true
result.config = props.config
result.updatedConfig = props.config
}

return result
Expand Down

0 comments on commit 52f968c

Please sign in to comment.