diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-17 00:57:31 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-17 00:57:31 +0200 |
commit | 9fa1081803bb4e0cc043cd554b8c1d67f7ae5e68 (patch) | |
tree | a3fbe9c35ac03775f83957f10a8f26efad099a24 | |
parent | :sparkles: add presence migration (diff) | |
download | server-9fa1081803bb4e0cc043cd554b8c1d67f7ae5e68.tar.xz |
:bug: default session activites
-rw-r--r-- | gateway/src/opcodes/Identify.ts | 1 | ||||
-rw-r--r-- | util/src/entities/Session.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index bd7fc894..f39ac808 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -94,6 +94,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { os: identify.properties?.os, version: 0, }, + activities: [], }).save(), Application.findOne({ id: this.user_id }), ]); diff --git a/util/src/entities/Session.ts b/util/src/entities/Session.ts index ac5313f1..969efa89 100644 --- a/util/src/entities/Session.ts +++ b/util/src/entities/Session.ts @@ -23,7 +23,7 @@ export class Session extends BaseClass { session_id: string; @Column({ type: "simple-json", nullable: true }) - activities: Activity[] = []; + activities: Activity[]; // TODO client_status @Column({ type: "simple-json", select: false }) |