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:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user