Change roomId by playUri

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2022-03-17 10:53:56 +01:00
parent 0e7a52aa58
commit 56fb73c682
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class ConnectionManager {
console.error("Invalid data received from /register route. Data: ", data); console.error("Invalid data received from /register route. Data: ", data);
throw new Error("Invalid data received from /register route."); 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; this.authToken = data.authToken;
localUserStore.saveUser(this.localUser); localUserStore.saveUser(this.localUser);
localUserStore.setAuthToken(this.authToken); localUserStore.setAuthToken(this.authToken);

View File

@ -65,7 +65,7 @@ class AdminApi {
const res = await Axios.get<unknown, AxiosResponse<unknown>>(ADMIN_API_URL + "/api/room/access", { const res = await Axios.get<unknown, AxiosResponse<unknown>>(ADMIN_API_URL + "/api/room/access", {
params: { params: {
userIdentifier, userIdentifier,
roomId: playUri, playUri,
ipAddress, ipAddress,
characterLayers, characterLayers,
}, },