diff options
Diffstat (limited to 'src/util/entities/Relationship.ts')
-rw-r--r-- | src/util/entities/Relationship.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/entities/Relationship.ts b/src/util/entities/Relationship.ts index 740095c2..e67557aa 100644 --- a/src/util/entities/Relationship.ts +++ b/src/util/entities/Relationship.ts @@ -24,7 +24,7 @@ import { ManyToOne, RelationId, } from "typeorm"; -import { BaseClass } from "./BaseClass"; +import { EntityCache } from "../cache"; import { User } from "./User"; export enum RelationshipType { @@ -36,7 +36,7 @@ export enum RelationshipType { @Entity("relationships") @Index(["from_id", "to_id"], { unique: true }) -export class Relationship extends BaseClass { +export class Relationship extends EntityCache { @Column({}) @RelationId((relationship: Relationship) => relationship.from) from_id: string; |