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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user