diff options
Diffstat (limited to 'src/util/entities/Session.ts')
-rw-r--r-- | src/util/entities/Session.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/entities/Session.ts b/src/util/entities/Session.ts index 0cb4c309..43945466 100644 --- a/src/util/entities/Session.ts +++ b/src/util/entities/Session.ts @@ -4,7 +4,7 @@ import { Status } from "../interfaces/Status"; import { BaseClass } from "./BaseClass"; import { User } from "./User"; -//TODO we need to remove all sessions on server start because if the server crashes without closing websockets it won't delete them +//TODO: we need to remove all sessions on server start because if the server crashes without closing websockets it won't delete them @Entity("sessions") export class Session extends BaseClass { @@ -18,7 +18,7 @@ export class Session extends BaseClass { }) user: User; - //TODO check, should be 32 char long hex string + //TODO: check, should be 32 char long hex string @Column({ nullable: false, select: false }) session_id: string; @@ -34,7 +34,7 @@ export class Session extends BaseClass { }; @Column({ nullable: false, type: "varchar" }) - status: Status; //TODO enum + status: Status; //TODO: enum } export const PrivateSessionProjection: (keyof Session)[] = ["user_id", "session_id", "activities", "client_info", "status"]; |