From 6e97de08c81e53ef0025f0852add3fcd41cfdca0 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Jan 2021 14:23:22 +0100 Subject: [PATCH] This is my contribution to Superalgos --- Client/httpInterface.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 8d1c0c7c9..9352df15b 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -536,12 +536,13 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE const commitMessage = unescape(requestParameters[3]) git .add('./*') - .commit(commitMessage, onCommit) + .commit(commitMessage) + .push('origin', 'in-app-documentation') - function onCommit(err) { - if (err) { throw err } - respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) - } + //function onCommit(err) { + // if (err) { throw err } + respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) + //} } catch (err) { console.log('[ERROR] httpInterface -> App -> Contribute -> Method call produced an error.') console.log('[ERROR] httpInterface -> App -> Contribute -> err.stack = ' + err.stack)