Skip to content
Snippets Groups Projects
Commit bf9f507f authored by Agustin's avatar Agustin
Browse files

Parameter update minor fix and documentation update.

parent 100c9c59
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,11 @@ const updateExtraData = async (parameters: DefaultExtraDataDTO[]): Promise<void>
if (ids.includes(extraDataIDs.minLowPrev)) {
if (ids.includes(extraDataIDs.minModPrev) && ids.includes(extraDataIDs.minIntPrev)) {
await updatePercentage(parameters, total);
if (ids.length === 3) {
await updatePercentage(parameters, total);
} else {
throw new Error('Too many parameters sent');
}
} else {
throw new Error('Missing parameter for update');
}
......
......@@ -104,7 +104,7 @@ paths:
put:
tags:
- Parameters
summary: Update a certain parameter
summary: Update a certain parameter. The array should contain exactly one item, unless the parameters to be updated are a trio, in which case all three parameters should be included.
requestBody:
content:
application/json:
......
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