1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00

feat(stp-execution): add returnLog option to execution query

This commit is contained in:
Yury Shkoda
2022-02-10 09:06:29 +03:00
parent e3f5206758
commit bf5767eadf
4 changed files with 18 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import express from 'express'
import path from 'path'
import { Request, Security, Route, Tags, Post, Body, Get, Query } from 'tsoa'
import { ExecutionController } from './internal'
import { ExecutionController, ExecutionVars } from './internal'
import { PreProgramVars } from '../types'
import { getTmpFilesFolderPath, makeFilesNamesMap } from '../utils'
@@ -66,7 +66,7 @@ const executeReturnRaw = async (
req: express.Request,
_program: string
): Promise<string> => {
const query = req.query as { [key: string]: string | number | undefined }
const query = req.query as ExecutionVars
const sasCodePath =
path
.join(getTmpFilesFolderPath(), _program)