Skip to content

Commit

Permalink
fix undefindes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Jul 15, 2024
1 parent 6febe1a commit 4154d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/HEARTBEAT/autopost.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function cleanupAutopostChannels() {
result.forEach(async (autoPost) => {
const channelID = autoPost.channelID;
const channel = client.channels.cache.find((channel) => channel.id === channelID);
notSuccessfullyPosted(channel);
if (channel) notSuccessfullyPosted(channel);
postcache.destroy({ where: { channelID } }).catch(ERR);
autopostchannel.destroy({ where: { channelID } }).catch(ERR);
});
Expand Down

0 comments on commit 4154d73

Please sign in to comment.