1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-13 17:00:06 +00:00

chore: always adding sas extension

This commit is contained in:
Mihajlo Medjedovic
2021-10-19 10:37:23 +00:00
parent f374acae6e
commit a09e90b010
3 changed files with 3 additions and 26 deletions

View File

@@ -7,7 +7,6 @@ import {
import { ExecutionResult, isRequestQuery, isFileTree } from '../types'
import path from 'path'
import {
addSasExtensionIfNotFound,
getTmpFilesFolderPath,
getTmpFolderPath,
makeFilesNamesMap
@@ -63,7 +62,7 @@ router.get('/SASjsExecutor/do', async (req, res) => {
.replace(new RegExp('/', 'g'), path.sep)
// If no extension provided, add .sas extension
sasCodePath += addSasExtensionIfNotFound(sasCodePath)
sasCodePath += '.sas'
await new ExecutionController()
.execute(sasCodePath, undefined, undefined, { ...req.query })
@@ -96,7 +95,7 @@ router.post(
.replace(new RegExp('/', 'g'), path.sep)
// If no extension provided, add .sas extension
sasCodePath += addSasExtensionIfNotFound(sasCodePath)
sasCodePath += '.sas'
let filesNamesMap = null