summary refs log tree commit diff
path: root/util/src/entities
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities')
-rw-r--r--util/src/entities/BaseClass.ts3
1 files changed, 1 insertions, 2 deletions
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;
 	}