feat: send UPGRADE_COMPANION_REF in automated upgrade call

pull/5873/head
NGPixel 2 years ago
parent db2ad81a1f
commit d10f2a1966
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63

@ -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.')

Loading…
Cancel
Save