Skip to content

Commit

Permalink
πŸ› vidThumbnail optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
relitrix committed Aug 29, 2024
1 parent 508ecc1 commit 2d67742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/commentsWave.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = async () => {
content: comm.content,
date: comm.date,
vidLink: basicInfo ? `https://youtube.com/watch?v=${comm.vidId}&lc=${comm.id}` : null,
vidThumbnail: basicInfo?.basic_info?.thumbnail[0].url,
vidThumbnail: basicInfo?.basic_info?.thumbnail?.[0]?.url,
creator: creator
})
})
Expand Down

0 comments on commit 2d67742

Please sign in to comment.