From cb67258ef314ac40d3fbe8cbe553c26ee209c897 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 28 Oct 2020 01:13:35 +0100 Subject: [PATCH] Make uid null instead of undefined, when user is not logged in --- src/database/session.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/database/session.ts b/src/database/session.ts index cb0431b..da14278 100644 --- a/src/database/session.ts +++ b/src/database/session.ts @@ -1,11 +1,10 @@ - export default class Session { - constructor(private _sessionid: string) { } + constructor(private _sessionid: string) {} get id() { return this._sessionid; } root: boolean = false; - uid: string = undefined; + uid: string = null; - subscriptions = new Map void)>(); -} \ No newline at end of file + subscriptions = new Map void>(); +}