From 17e31a00f0f88102a686eb7bfccb859ad530b34e Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 4 Oct 2021 23:14:03 +0200 Subject: :sparkles: db migrate script --- util/src/entities/BaseClass.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util/src/entities') diff --git a/util/src/entities/BaseClass.ts b/util/src/entities/BaseClass.ts index f105086a..beccf04b 100644 --- a/util/src/entities/BaseClass.ts +++ b/util/src/entities/BaseClass.ts @@ -15,7 +15,7 @@ import "missing-native-js-functions"; // btw. we don't use class-validator for everything, because we need to explicitly set the type instead of deriving it from typescript also it doesn't easily support nested objects export class BaseClassWithoutId extends BaseEntity { - constructor(private props?: any) { + constructor(props?: any) { super(); this.assign(props); } @@ -56,7 +56,6 @@ export class BaseClassWithoutId extends BaseEntity { @BeforeUpdate() @BeforeInsert() validate() { - this.assign(this.props); return this; } -- cgit 1.4.1