summary refs log tree commit diff
path: root/src/util/entities/SecurityKey.ts
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2023-03-18 04:11:48 +0100
committerSamuel <34555296+Flam3rboy@users.noreply.github.com>2023-03-18 04:11:48 +0100
commit366c4935a42d5056c51cdbd7c82c2674f1b8b128 (patch)
tree7c3cdc444536d8b1065c9f98d96355d0f5276704 /src/util/entities/SecurityKey.ts
parentfix: package-lock.json (diff)
downloadserver-366c4935a42d5056c51cdbd7c82c2674f1b8b128.tar.xz
feat: Database Query Cache
Diffstat (limited to '')
-rw-r--r--src/util/entities/SecurityKey.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/entities/SecurityKey.ts b/src/util/entities/SecurityKey.ts

index 8f377d9d..86e5531e 100644 --- a/src/util/entities/SecurityKey.ts +++ b/src/util/entities/SecurityKey.ts
@@ -17,11 +17,11 @@ */ import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; -import { BaseClass } from "./BaseClass"; +import { EntityCache } from "../cache"; import { User } from "./User"; @Entity("security_keys") -export class SecurityKey extends BaseClass { +export class SecurityKey extends EntityCache { @Column({ nullable: true }) @RelationId((key: SecurityKey) => key.user) user_id: string;