1
0
mirror of https://github.com/sasjs/server.git synced 2026-04-10 15:43:14 +00:00

chore(stp): removed query logic from trigger endpoint

This commit is contained in:
Yury
2024-10-29 16:55:40 +03:00
parent b0723f1444
commit deee34f5fd
2 changed files with 9 additions and 20 deletions

View File

@@ -78,11 +78,7 @@ stpRouter.post('/trigger', async (req, res) => {
if (error) return res.status(400).send(error.details[0].message)
try {
const response = await controller.triggerProgram(
req,
body,
req.query?._program as string
)
const response = await controller.triggerProgram(req, body)
res.status(200)
res.send(response)