mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(player): force identifier to string
This commit is contained in:
1 parent
1253c76aef
commit
5dcb654516
1 file changed
+1
-1
@@ -170,7 +170,7 @@ class _PlayerService {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
async handleNewPlayerEvent({ source: src, identifier, firstname, lastname }: PlayerAddData) {
|
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 (firstname) player.setFirstName(firstname);
|
||||||
if (lastname) player.setLastName(lastname);
|
if (lastname) player.setLastName(lastname);
|
||||||
|
|||||||
Reference in new issue
Block a user