mirror of
https://github.com/sasjs/server.git
synced 2026-01-14 09:20:06 +00:00
chore: addExtension function fix and testing
This commit is contained in:
@@ -63,7 +63,7 @@ router.get('/SASjsExecutor/do', async (req, res) => {
|
||||
.replace(new RegExp('/', 'g'), path.sep)
|
||||
|
||||
// If no extension provided, add .sas extension
|
||||
sasCodePath += !sasCodePath.includes('.') ? '.sas' : ''
|
||||
sasCodePath += addExtensionIfNotFound(sasCodePath, 'sas')
|
||||
|
||||
await new ExecutionController()
|
||||
.execute(sasCodePath, undefined, undefined, { ...req.query })
|
||||
|
||||
Reference in New Issue
Block a user