Skip to content

Commit

Permalink
fix(server): logins should be snake_cased, fix #161
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 8, 2023
1 parent 6846849 commit f32e5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function apply(ctx: Context, config: Config) {
socket.send(JSON.stringify({
op: Universal.Opcode.READY,
body: {
logins: ctx.bots.map(bot => bot.toJSON()),
logins: transformKey(ctx.bots.map(bot => bot.toJSON()), snakeCase),
},
}))
if (!payload.body?.sequence) return
Expand Down

0 comments on commit f32e5e2

Please sign in to comment.