Saving Plugins Working!

This commit is contained in:
Luis Fernando Molina committed 2021-06-30 13:30:26 +02:00
1 parent cd791d84b0
commit 37c3a9e180
5 files changed
+12 -10

No files matched your search

-1
View File
@@ -1193,7 +1193,6 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
let folder = requestParameters[3]
let fileName = requestParameters[4]
let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Plugins/' + folder
createNewDir(filePath)
let fileContent = JSON.stringify(plugin, undefined, 4)
const fs = require('fs')
fs.writeFileSync(filePath + '/' + fileName + '.json', fileContent)