mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-28 16:48:12 +00:00
Include status in roundtrip query when handling PresenceUpdate
This commit is contained in:
1 parent
b29b902d5c
commit
c03c59e85d
1 file changed
+1
-1
@@ -49,7 +49,7 @@ export async function onPresenceUpdate(this: WebSocket, { d }: Payload) {
|
||||
await Session.update({ session_id: this.session_id }, { status: presence.status as PrivateStatus, activities: presence.activities });
|
||||
|
||||
const session = await Session.findOneOrFail({
|
||||
select: { client_status: true },
|
||||
select: { status: true, client_status: true },
|
||||
where: { session_id: this.session_id },
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user