Skip to content

Commit

Permalink
schedulers(liveStreams): return after api error has logged
Browse files Browse the repository at this point in the history
Signed-off-by: TRACTION <19631364+iamtraction@users.noreply.github.com>
  • Loading branch information
iamtraction committed Dec 1, 2023
1 parent 8dd84b9 commit 31f66a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schedulers/liveStreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LiveStreamNotificationScheduler extends Scheduler {
});

if (statusCode >= 400) {
Logger.error(await body.json());
return Logger.error(await body.json());
}

const streams: TwitchStream[] = (await body.json())?.["data"] || [];
Expand Down

0 comments on commit 31f66a7

Please sign in to comment.