Skip to content

Commit

Permalink
chore: migrate from v8 to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheknaiidu authored Jun 20, 2023
1 parent d02f98c commit 8b83661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const TODOIST_API_KEY = core.getInput("TODOIST_API_KEY");
const PREMIUM = core.getInput("PREMIUM");

async function main() {
// v8 => v9
const stats = await axios(
`https://api.todoist.com/sync/v8.3/completed/get_stats?token=${TODOIST_API_KEY}`
"https://api.todoist.com/sync/v9/completed/get_stats",
{ headers: { Authorization: `Bearer ${TODOIST_API_KEY}` } }
);
await updateReadme(stats.data);
}
Expand Down

0 comments on commit 8b83661

Please sign in to comment.