update player name
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user