From d10f2a1966a050c326e8de2432204ed691d73bea Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 18 Nov 2022 16:24:23 -0500 Subject: [PATCH] feat: send UPGRADE_COMPANION_REF in automated upgrade call --- server/graph/resolvers/system.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/graph/resolvers/system.js b/server/graph/resolvers/system.js index 103a7041..51e57637 100644 --- a/server/graph/resolvers/system.js +++ b/server/graph/resolvers/system.js @@ -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.')