mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-12-22 04:31: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");
|
||||
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) {
|
||||
console.error(res.data);
|
||||
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");
|
||||
break;
|
||||
}
|
||||
|
||||
console.log(`${apiEndpoint}/task/${taskId[1]}/finish`)
|
||||
const res = await axios.post(
|
||||
`${apiEndpoint}/task/${taskId[1]}`,
|
||||
`${apiEndpoint}/task/${taskId[1]}/finish`,
|
||||
null,
|
||||
defaultOptions,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue