Update sessionsService.js

This commit is contained in:
Gilles Lazures 2026-01-14 23:56:31 +01:00
parent ffa23e35b0
commit b6b7cf7fe0

View File

@ -123,11 +123,6 @@ async function joinServer({ accessToken, selectedProfile, clientToken, serverId,
throw new DefaultError(403, "Invalid access token", "ForbiddenOperationException")
}
const existingSession = await sessionRepository.getServerSessionByUuid(selectedProfile)
if (existingSession && existingSession.serverId !== serverId) {
throw new DefaultError(403, "Already logged in on another server.", "ForbiddenOperationException")
}
await sessionRepository.saveServerSession(selectedProfile, accessToken, serverId, ip)
return { code: 204 }
}