mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-01-18 10:22:27 -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)
|
let streamerData = await scraper.getStreamerData(username)
|
||||||
.catch(next)
|
.catch(next)
|
||||||
|
|
||||||
res.send(streamerData)
|
if (streamerData)
|
||||||
|
res.send(streamerData)
|
||||||
})
|
})
|
||||||
|
|
||||||
export default profileRouter
|
export default profileRouter
|
Loading…
Add table
Reference in a new issue