From 56fb73c6822e5c9dd4150e23fd3641a2e39091b3 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Thu, 17 Mar 2022 10:53:56 +0100 Subject: [PATCH] Change roomId by playUri Signed-off-by: Gregoire Parant --- front/src/Connexion/ConnectionManager.ts | 2 +- pusher/src/Services/AdminApi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index c8c67b77..d2b8275e 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -144,7 +144,7 @@ class ConnectionManager { console.error("Invalid data received from /register route. Data: ", data); throw new Error("Invalid data received from /register route."); } - this.localUser = new LocalUser(data.userUuid, data.textures, data.email); + this.localUser = new LocalUser(data.userUuid, data.email); this.authToken = data.authToken; localUserStore.saveUser(this.localUser); localUserStore.setAuthToken(this.authToken); diff --git a/pusher/src/Services/AdminApi.ts b/pusher/src/Services/AdminApi.ts index 62d582ff..33c8ad93 100644 --- a/pusher/src/Services/AdminApi.ts +++ b/pusher/src/Services/AdminApi.ts @@ -65,7 +65,7 @@ class AdminApi { const res = await Axios.get>(ADMIN_API_URL + "/api/room/access", { params: { userIdentifier, - roomId: playUri, + playUri, ipAddress, characterLayers, },