From 7e4ce52397873b46bbf9b42454c88791aa48223b Mon Sep 17 00:00:00 2001 From: darakuneko Date: Wed, 2 Aug 2023 11:47:30 +0900 Subject: [PATCH] fix: vial init --- gpk_fwmaker/server/src/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpk_fwmaker/server/src/app.js b/gpk_fwmaker/server/src/app.js index 02208e8..22a7c31 100644 --- a/gpk_fwmaker/server/src/app.js +++ b/gpk_fwmaker/server/src/app.js @@ -50,11 +50,12 @@ app.post('/build/qmk', async (req, res) => { app.post('/build/vial', async (req, res) => { const fn = async () => { try { + const repo = 'vial' const kb = req.body.kb const kbDir = kb.replace(/\/.*/g, "") const km = req.body.km.replace(/:.*|flash/g, "") - const commit = "commit" in req.body && req.body.commit.length > 0 ? req.body.commit : "vial" - await cmd.checkoutVial(res, 'vial', commit) + const commit = "commit" in req.body && req.body.commit.length > 0 ? req.body.commit : repo + await cmd.checkoutVial(res, repo, commit) await cmd.cpConfigsToVial(kbDir) await cmd.buildVialFirmware(res, kb, km) } catch (e) { streamError(res, e) }