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