1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 11:43:07 +01:00

question mark.

This commit is contained in:
Madeline 2023-01-30 20:05:07 +11:00
parent 005aa8e52c
commit c4599a87ce
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -213,7 +213,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
const session = getMostRelevantSession(sessions);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (session.status == "unknown") session.status = "online";
if (session?.status == "unknown") session.status = "online";
const user = (await User.getPublicUser(x)).toPublicUser(); // why is this needed?
return Send(this, {