feat: send UPGRADE_COMPANION_REF in automated upgrade call

This commit is contained in:
NGPixel 2022-11-18 16:24:23 -05:00
parent db2ad81a1f
commit d10f2a1966
No known key found for this signature in database
GPG Key ID: 8FDA2F1757F60D63

View File

@ -90,7 +90,10 @@ module.exports = {
if (process.env.UPGRADE_COMPANION) { if (process.env.UPGRADE_COMPANION) {
await request({ await request({
method: 'POST', 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 { return {
responseResult: graphHelper.generateSuccess('Upgrade has started.') responseResult: graphHelper.generateSuccess('Upgrade has started.')