Skip to content
Snippets Groups Projects
Commit 76c2ab7f authored by Renzo Beux's avatar Renzo Beux
Browse files

fix: changeParameter should send json

parent 9c303c70
No related branches found
No related tags found
No related merge requests found
Pipeline #16233 passed
......@@ -68,7 +68,7 @@ const updateParameterValue: Handler = async (req: Request, res: Response) => {
break;
}
audit(req, `Cambió el parametro ${parameters[0].parameterType} a ${parameters[0].value} para ${parameters[0].sex} ${parameters[0].ageRang} `);
logAndRespond(res, 200, 'send', 'Parameter changed', 'info', null, null);
logAndRespond(res, 200, 'json', { message: 'Parameter changed' }, 'info', null, null);
} catch (error) {
const e = error as Error;
logAndRespond(res, 400, 'json', { error: e.message }, 'info', null, null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment