From 9c4e54fc6e738194475c956895a229b18b51a3f4 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 2 Jan 2021 19:57:33 +0100 Subject: [PATCH] Added comments to the bugfix --- src/models/entities/IAddressUser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/entities/IAddressUser.ts b/src/models/entities/IAddressUser.ts index 425f4e3..56ee840 100644 --- a/src/models/entities/IAddressUser.ts +++ b/src/models/entities/IAddressUser.ts @@ -1,6 +1,10 @@ import { Entity, ManyToOne, PrimaryColumn } from 'typeorm'; import { Address } from './Address'; +/** + * The interface(-ish) all entities using addresses have to implement. + * This is a abstract class, because apparently typeorm can't really work with interfaces :/ + */ @Entity() export abstract class IAddressUser { @PrimaryColumn()