mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 13:22:58 -05:00
FIx error
This commit is contained in:
parent
25f29ec171
commit
0c084d4f09
1 changed files with 2 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue