Update sessionsService.js
This commit is contained in:
parent
ffa23e35b0
commit
b6b7cf7fe0
@ -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 }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user