Skip to content

Commit

Permalink
didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 15, 2023
1 parent d775ec3 commit eb34996
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helpers/functions/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export const computeAndUpdate = async (

console.log("compute results fetched");

const packProgress = await axios.get(`${client.tokens.apiUrl}settings/channels.pack_progress`, { proxy: false });
const packProgress = (
await axios.get(`${client.tokens.apiUrl}settings/channels.pack_progress`, { proxy: false })
).data;

console.log(`pack progress fetched successfully: ${JSON.stringify(packProgress)}`);

Expand All @@ -82,7 +84,7 @@ export const computeAndUpdate = async (
const pattern = /[.\d+]+(?!.*[.\d+])/;
if (channel.name.match(pattern)?.[0] == results[2].completion.toString()) break;

console.log(`channel hasn't been updated yet: ${channel.name.match(pattern)?.[0]}`)
console.log(`channel hasn't been updated yet: ${channel.name.match(pattern)?.[0]}`);

const updatedName = channel.name.replace(pattern, results[2].completion.toString());

Expand Down

0 comments on commit eb34996

Please sign in to comment.