mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 22:50:05 +00:00
fix: minor changes
This commit is contained in:
@@ -39,9 +39,7 @@ const executeSASCode = async (req: any, { code }: ExecuteSASCodePayload) => {
|
||||
true
|
||||
)) as ExecuteReturnRaw
|
||||
|
||||
Object.entries(httpHeaders).forEach(([key, value]) => {
|
||||
req.res?.set(key, value)
|
||||
})
|
||||
req.res?.set(httpHeaders)
|
||||
|
||||
return result
|
||||
} catch (err: any) {
|
||||
|
||||
@@ -85,9 +85,7 @@ const executeReturnRaw = async (
|
||||
query
|
||||
)) as ExecuteReturnRaw
|
||||
|
||||
Object.entries(httpHeaders).forEach(([key, value]) => {
|
||||
req.res?.set(key, value)
|
||||
})
|
||||
req.res?.set(httpHeaders)
|
||||
|
||||
return result as string
|
||||
} catch (err: any) {
|
||||
@@ -121,9 +119,7 @@ const executeReturnJson = async (
|
||||
true
|
||||
)) as ExecuteReturnJson
|
||||
|
||||
Object.entries(httpHeaders).forEach(([key, value]) => {
|
||||
req.res?.set(key, value)
|
||||
})
|
||||
req.res?.set(httpHeaders)
|
||||
|
||||
return {
|
||||
status: 'success',
|
||||
|
||||
Reference in New Issue
Block a user