Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from JSALStats/dev
Browse files Browse the repository at this point in the history
update dependencies and removed logging
  • Loading branch information
GalvinPython authored Jun 21, 2024
2 parents 13af120 + e4c1123 commit ff3446b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
Binary file modified bun.lockb
Binary file not shown.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"cron": "^3.1.7",
"twitter-api-v2": "^1.17.0",
"twitter-api-v2": "^1.17.1",
"zod": "^3.23.8"
}
}
2 changes: 0 additions & 2 deletions src/utils/getSubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export async function getSubsTask(): Promise<void> {
for (let i = 0; i < subscriberCounts.length; i++) {
const subsciberCount = subscriberCounts[i];
const channelId = channels[i];
console.log('\n', channelId, subsciberCount)
const currentSubCount = await getChannelSubs(channelId) as any
console.log(currentSubCount)
if (currentSubCount[0] < subsciberCount) {
console.log('An update has been detected from', currentSubCount[0], '->', subsciberCount)
await updateSubsTask(channelId, subsciberCount)
Expand Down

0 comments on commit ff3446b

Please # to comment.