From 62be0ba3c03388918acf3624193351e35ca105ad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 10 Jul 2022 18:25:18 +0000 Subject: [PATCH] fix(session-entity): update for connect-typeorm v2 Signed-off-by: David Mehren --- src/users/session.entity.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/users/session.entity.ts b/src/users/session.entity.ts index f4dc6a51f..4396a6ef1 100644 --- a/src/users/session.entity.ts +++ b/src/users/session.entity.ts @@ -4,7 +4,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import { ISession } from 'connect-typeorm'; -import { Column, Entity, Index, ManyToOne, PrimaryColumn } from 'typeorm'; +import { + Column, + DeleteDateColumn, + Entity, + Index, + ManyToOne, + PrimaryColumn, +} from 'typeorm'; import { Author } from '../authors/author.entity'; @@ -20,6 +27,9 @@ export class Session implements ISession { @Column('text') public json = ''; + @DeleteDateColumn() + public destroyedAt?: Date; + @ManyToOne(() => Author, (author) => author.sessions) author: Promise; }