From 2928c794464809bb326049d2361d641429f01f17 Mon Sep 17 00:00:00 2001 From: RealBeepMcJeep Date: Wed, 30 Aug 2023 07:56:06 -0700 Subject: [PATCH] simple-git needs to get their shit together --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index 60e77b98a..52c677cbd 100644 --- a/server.js +++ b/server.js @@ -4978,6 +4978,7 @@ async function getManifest(extensionPath) { } async function checkIfRepoIsUpToDate(extensionPath) { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); await git.cwd(extensionPath).fetch('origin'); const currentBranch = await git.cwd(extensionPath).branch(); @@ -5008,6 +5009,7 @@ async function checkIfRepoIsUpToDate(extensionPath) { * @returns {void} */ app.post('/get_extension', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.url) { return response.status(400).send('Bad Request: URL is required in the request body.'); @@ -5053,6 +5055,7 @@ app.post('/get_extension', jsonParser, async (request, response) => { * @returns {void} */ app.post('/update_extension', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.extensionName) { return response.status(400).send('Bad Request: extensionName is required in the request body.'); @@ -5098,6 +5101,7 @@ app.post('/update_extension', jsonParser, async (request, response) => { * @returns {void} */ app.post('/get_extension_version', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.extensionName) { return response.status(400).send('Bad Request: extensionName is required in the request body.');