Skip to content

Commit bbf252b

Browse files
garrappachcclaude
andcommitted
fix(queue-captain): pass players array to queue/players:updated event
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ada90f9 commit bbf252b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/queue-captain/set-wants-captain.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export async function setWantsCaptain(
3333
{ returnDocument: 'after' },
3434
))!
3535

36-
events.emit('queue/players:updated')
36+
const allPlayers = await collections.queuePlayers.find({}).toArray()
37+
events.emit('queue/players:updated', { players: allPlayers })
3738
return updated
3839
})
3940
}

0 commit comments

Comments
 (0)