From 898e582bcbdd2965446806a86e3f97c3ef25103b Mon Sep 17 00:00:00 2001 From: NAmorim Date: Wed, 24 Nov 2021 22:04:28 +0000 Subject: [PATCH] Deepscan fixes --- Platform/Client/githubServer.js | 4 +--- Platform/Client/httpInterface.js | 10 +++++----- .../UI/Function-Libraries/ProfileConstructor.js | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Platform/Client/githubServer.js b/Platform/Client/githubServer.js index f245239f1..b72259bb2 100644 --- a/Platform/Client/githubServer.js +++ b/Platform/Client/githubServer.js @@ -168,8 +168,6 @@ exports.newGithubServer = function newGithubServer() { username = unescape(username) token = unescape(token) - let error - await doGithub() async function doGithub() { @@ -184,7 +182,7 @@ exports.newGithubServer = function newGithubServer() { await octokit.repos.createFork({ owner: 'Superalgos', - repo: "Superalgos" + repo: 'Superalgos' }) } catch (err) { if (err === undefined) { return } diff --git a/Platform/Client/httpInterface.js b/Platform/Client/httpInterface.js index e54dddf6f..62a398f49 100644 --- a/Platform/Client/httpInterface.js +++ b/Platform/Client/httpInterface.js @@ -1135,7 +1135,7 @@ exports.newHttpInterface = function newHttpInterface() { try { console.log('fixSchemas...' + allAppSchemas.length) let projects = SA.projects.foundations.utilities.filesAndDirectories.getDirectories(global.env.PATH_TO_PROJECTS) - const fs = SA.nodeModules.fs + //const fs = SA.nodeModules.fs let needFixing = 0 for (let i = 0; i < allAppSchemas.length; i++) { let schemaDocument = allAppSchemas[i] @@ -1183,13 +1183,13 @@ exports.newHttpInterface = function newHttpInterface() { } } - if (wasUpdated === true) { - let fileContent = JSON.stringify(schemaDocument, undefined, 4) - let filePath = allAppSchemasFilePaths[i] + //if (wasUpdated === true) { + //let fileContent = JSON.stringify(schemaDocument, undefined, 4) + //let filePath = allAppSchemasFilePaths[i] //console.log('Saving File at ' + filePath) //console.log(fileContent) //fs.writeFileSync(filePath, fileContent) - } + //} } } catch (err) { console.log(err.stack) diff --git a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js index 54766d23b..f0bf9569b 100644 --- a/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js +++ b/Projects/Governance/UI/Function-Libraries/ProfileConstructor.js @@ -140,8 +140,8 @@ function newGovernanceFunctionLibraryProfileConstructor() { liquidProgs.payload.uiObject.menu.internalClick('Add Liquidity Program') let liquidProg = UI.projects.visualScripting.functionLibraries.uiObjectsFromNodes.addUIObject(liquidProgs, "Liquidity Program", userProfile) - liquidProgs.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - liquidProgs.payload.uiObject.menu.internalClick('Add Tokens Awarded') + liquidProg.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 + liquidProg.payload.uiObject.menu.internalClick('Add Tokens Awarded') /* Check if the user already has the SA fork. If not, do it for them.