mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-11-10 02:38:06 +01:00
fix: contact the actual endpoint for finishing
This commit is contained in:
parent
35bf0c3452
commit
7705280094
2 changed files with 4 additions and 3 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -45412,7 +45412,8 @@ try {
|
||||||
console.log("Comment found, but no Freelo task ID identified");
|
console.log("Comment found, but no Freelo task ID identified");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const res = await axios_default.post(`${apiEndpoint}/task/${taskId2[1]}`, null, defaultOptions);
|
console.log(`${apiEndpoint}/task/${taskId2[1]}/finish`);
|
||||||
|
const res = await axios_default.post(`${apiEndpoint}/task/${taskId2[1]}/finish`, null, defaultOptions);
|
||||||
if (res.status > 399) {
|
if (res.status > 399) {
|
||||||
console.error(res.data);
|
console.error(res.data);
|
||||||
throw new Error("Got an error response from Freelo API");
|
throw new Error("Got an error response from Freelo API");
|
||||||
|
|
|
@ -147,9 +147,9 @@ try {
|
||||||
console.log("Comment found, but no Freelo task ID identified");
|
console.log("Comment found, but no Freelo task ID identified");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
console.log(`${apiEndpoint}/task/${taskId[1]}/finish`)
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
`${apiEndpoint}/task/${taskId[1]}`,
|
`${apiEndpoint}/task/${taskId[1]}/finish`,
|
||||||
null,
|
null,
|
||||||
defaultOptions,
|
defaultOptions,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue