update player name
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s

This commit is contained in:
Lee 2024-10-28 13:27:46 +00:00
parent 8314cbcf2d
commit 981bc13a1f

@ -67,6 +67,12 @@ export class PlayerService {
// Wait for the player creation to complete
player = await accountCreationLock[id];
// Update player name
if (player.name !== playerToken.name) {
player.name = playerToken.name;
await player.save();
}
}
// Ensure that the player is now of type PlayerDocument