refactor(webhook): respond with 204 instead of 200

This commit is contained in:
Ali BARIN
2023-05-15 20:31:24 +00:00
parent ad4db5e936
commit d540322d8b

View File

@@ -85,7 +85,7 @@ export default async (request: IRequest, response: Response) => {
}); });
if (testRun) { if (testRun) {
return response.sendStatus(200); return response.sendStatus(204);
} }
const nextStep = await triggerStep.getNextStep(); const nextStep = await triggerStep.getNextStep();
@@ -104,5 +104,5 @@ export default async (request: IRequest, response: Response) => {
await actionQueue.add(jobName, jobPayload, jobOptions); await actionQueue.add(jobName, jobPayload, jobOptions);
return response.sendStatus(200); return response.sendStatus(204);
}; };