Skip to content

Commit

Permalink
Change getTasksByIds from POST to GET and add filterParam
Browse files Browse the repository at this point in the history
Signed-off-by: shevijacobson <[email protected]>
  • Loading branch information
Shevijacobson committed Oct 29, 2024
1 parent 2f2061f commit 88d9ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/api/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,10 @@ export function getTasksByIds(
const isYaml = format === "yaml";
const headers = isYaml ? { ...yamlHeaders } : { ...jsonHeaders };
const responseType = isYaml ? "text" : "json";
const filterParam = `id:(${ids.join("|")})`;

return axios
.post<Task[]>(`${TASKS}/multiple`, ids, {
.get<Task[]>(`${TASKS}`, {
headers: headers,
responseType: responseType,
})
Expand Down

0 comments on commit 88d9ff3

Please sign in to comment.