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

update dependencies and removed logging #8

Merged
merged 6 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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