Skip to content

Commit

Permalink
feat: send UPGRADE_COMPANION_REF in automated upgrade call
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Nov 18, 2022
1 parent db2ad81 commit d10f2a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/graph/resolvers/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ module.exports = {
if (process.env.UPGRADE_COMPANION) {
await request({
method: 'POST',
uri: 'http://wiki-update-companion/upgrade'
uri: 'http://wiki-update-companion/upgrade',
qs: {
...process.env.UPGRADE_COMPANION_REF && { container: process.env.UPGRADE_COMPANION_REF }
}
})
return {
responseResult: graphHelper.generateSuccess('Upgrade has started.')
Expand Down

0 comments on commit d10f2a1

Please sign in to comment.