File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export async function checkIfStreamersAreLive(): Promise<void> {
129129 for ( const guild of guildsTrackingStreamer . data ) {
130130 // Send a message to the channel
131131 const channel = await client . channels . fetch (
132- guild . guildId ,
132+ guild . notificationChannelId ,
133133 ) ;
134134
135135 await ( channel as TextChannel ) . send (
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export default async function fetchLatestUploads() {
153153 new Date ( ) ,
154154 ) ;
155155
156- if ( ! updateSuccess ) {
156+ if ( ! updateSuccess . success ) {
157157 console . error (
158158 "Error updating video ID in fetchLatestUploads" ,
159159 ) ;
@@ -177,17 +177,17 @@ export default async function fetchLatestUploads() {
177177
178178 const channelInfo = await getChannelDetails ( channelId ) ;
179179
180- console . log (
181- discordGuildsToUpdate . data . filter (
180+ console . info ( `Filtered guilds for channel ID ${ channelId } :` , {
181+ count : discordGuildsToUpdate . data . filter (
182182 (
183183 guild ,
184184 ) : guild is typeof dbGuildYouTubeSubscriptionsTable . $inferSelect =>
185185 "youtubeChannelId" in guild &&
186186 "trackVideos" in guild &&
187187 "trackShorts" in guild &&
188188 "trackStreams" in guild ,
189- ) ,
190- ) ;
189+ ) . length ,
190+ } ) ;
191191
192192 updates . set ( videoId , {
193193 channelInfo,
You can’t perform that action at this time.
0 commit comments