0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

FIx error

This commit is contained in:
dragongoose 2023-03-10 15:23:23 -05:00
parent 25f29ec171
commit 0c084d4f09

View file

@ -10,7 +10,8 @@ profileRouter.get('/users/:username', async (req, res, next) => {
let streamerData = await scraper.getStreamerData(username)
.catch(next)
res.send(streamerData)
if (streamerData)
res.send(streamerData)
})
export default profileRouter