Skip to content

Commit

Permalink
fix: sort viewers (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 authored Sep 16, 2023
1 parent aec791b commit 3c43b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/src/chat-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export async function twitchGetChatters(
!mods.some((m) => m.user_id == c.user_id) &&
!vips.some((v) => v.user_id == c.user_id)
);
viewers.sort((a, b) => a.user_name.localeCompare(b.user_name));
// for backwards compatibility, return the list of usernames as strings.
// and return the full profile as <key>Data.
return {
Expand Down

0 comments on commit 3c43b9d

Please sign in to comment.