1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

fix(deploy): fix payload processing

This commit is contained in:
Yury Shkoda
2021-10-26 08:18:02 +00:00
parent a1de0ae888
commit 361b539271
2 changed files with 3 additions and 3 deletions

View File

@@ -43,6 +43,6 @@
},
"configuration": {
"sasPath": "/opt/sas/sas9/SASHome/SASFoundation/9.4/sas",
"sasJsPort": 5005
"sasJsPort": 5000
}
}

View File

@@ -23,7 +23,7 @@ router.get('/', async (_, res) => {
})
router.post('/deploy', async (req, res) => {
if (!isFileTree({ members: req.body.members })) {
if (!isFileTree(req.body.fileTree)) {
res.status(400).send({
status: 'failure',
message: 'Provided not supported data format.',
@@ -34,7 +34,7 @@ router.post('/deploy', async (req, res) => {
}
await createFileTree(
req.body.members,
req.body.fileTree.members,
req.body.appLoc ? req.body.appLoc.replace(/^\//, '').split('/') : []
)
.then(() => {