fix(player): force identifier to string

This commit is contained in:
Christopher committed 2021-08-02 11:16:32 +02:00
1 parent 1253c76aef
commit 5dcb654516
1 file changed
+1 -1
+1 -1
View File
@@ -170,7 +170,7 @@ class _PlayerService {
*
*/
async handleNewPlayerEvent({ source: src, identifier, firstname, lastname }: PlayerAddData) {
const player = await this.createNewPlayer({ src, identifier });
const player = await this.createNewPlayer({ src, identifier: identifier.toString() });
if (firstname) player.setFirstName(firstname);
if (lastname) player.setLastName(lastname);