Fix route path and UUID formatting in session service

Changed route definitions in index.js from "" to "/" for correct routing. Updated sessionsService.js to add dashes to UUID before querying user data, ensuring proper UUID formatting.
This commit is contained in:
2025-12-29 01:21:21 +01:00
parent 947192d997
commit 80fb6c6cd4
2 changed files with 4 additions and 4 deletions

View File

@@ -44,9 +44,9 @@ async function getBlockedServers() {
}
async function getProfile({ uuid, unsigned = false }) {
let userResult
let userResult, $uuid = utils.addDashesToUUID(uuid)
try {
userResult = await authRepository.getUser(uuid, false)
userResult = await authRepository.getUser($uuid, false)
} catch (error) {
if (error.code === 404) {
return { code: 204, message: "User not found" }