Deepscan fixes
This commit is contained in:
1 parent
f99f4d6f87
commit
898e582bcb
3 files changed
+8
-10
No files matched your search
@@ -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 }
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user