diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index 4c9d474f8..8a04b7840 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -979,7 +979,7 @@ exports.newHttpInterface = function newHttpInterface() { } async function getSHA(path, octokit) { - + let sha = '' try{ const result = await octokit.repos.getContent({ owner: username, @@ -987,13 +987,12 @@ exports.newHttpInterface = function newHttpInterface() { path, ref: currentBranch }); - const sha = result?.data?.sha + sha = result?.data?.sha return sha } catch (err) { - if (err.message = 'Not Found') { + if (err.message === 'Not Found') { console.log("[User Not Found] -> Creating new user") - const sha = '' return sha } else { console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> Method call produced an error.') @@ -1004,7 +1003,6 @@ exports.newHttpInterface = function newHttpInterface() { console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10)) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> currentBranch = ' + currentBranch) console.log('[ERROR] httpInterface -> App -> Contribute -> doGithub -> contributionsBranch = ' + contributionsBranch) - const sha = '' return sha } } diff --git a/Projects/Education/UI/Spaces/Docs-Space/CommandInterface.js b/Projects/Education/UI/Spaces/Docs-Space/CommandInterface.js index aee690dd5..c7c425b19 100644 --- a/Projects/Education/UI/Spaces/Docs-Space/CommandInterface.js +++ b/Projects/Education/UI/Spaces/Docs-Space/CommandInterface.js @@ -108,7 +108,7 @@ function newFoundationsDocsCommmandInterface() { /* Set up the commit message */ let message = UI.projects.education.spaces.docsSpace.commandInterface.command.trim().substring(UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf(' ') + 1, UI.projects.education.spaces.docsSpace.commandInterface.command.length) - if (message.toLowerCase() === 'app.UserUpdate') { + if (message.toLowerCase() === 'app.userupdate') { message = 'This is my UserUpdate to Superalgos' }