This is my contribution to Superalgos

This commit is contained in:
Luis Fernando Molina committed 2021-01-05 14:18:02 +01:00
1 parent 874a3cde1c
commit f8f64420cc
1 file changed
+5 -5
+5 -5
View File
@@ -534,12 +534,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
}
const git = simpleGit(options)
const commitMessage = unescape(requestParameters[3])
git.add('./*')
git.commit(commitMessage, onCommit)
git
.add('./*')
.commit(commitMessage, onCommit)
function onCommit(err) {
console.log(err)
if (err) {throw err}
if (err) { throw err }
respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
}
} catch (err) {