Skip to content

Commit

Permalink
Register pseudo 404 when migrating players
Browse files Browse the repository at this point in the history
  • Loading branch information
Feiryn committed Jan 11, 2025
1 parent d273099 commit b0d1cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/core/database/game/migrations/019-v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ clientSecret = "secret"

for (let i = 0; i < players.length; ++i) {
const player = players[i];
const user = await KeycloakUtils.getOrRegisterDiscordUser(config.keycloak, player.discordUserId as string, player.discordUserId as string, LANGUAGE.DEFAULT_LANGUAGE);
const user = await KeycloakUtils.getOrRegisterDiscordUser(config.keycloak, player.discordUserId as string, "Pseudo 404", LANGUAGE.DEFAULT_LANGUAGE);
await context.sequelize.query(`UPDATE players SET discordUserId = "${user.id}" WHERE discordUserId = "${player.discordUserId}"`);
logsV5NewIds.set(player.discordUserId as string, user.id);
}
Expand Down

0 comments on commit b0d1cf8

Please sign in to comment.