This is my contribution to Superalgos
This commit is contained in:
1 parent
f8f64420cc
commit
6e97de08c8
1 file changed
+6
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user