Fixed Creation of normal scans

ref #67
This commit is contained in:
2021-01-07 16:32:16 +01:00
parent a2c3913601
commit 30502ec949
4 changed files with 62 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ export class Scan {
/**
* The scan's distance in meters.
* Can be set manually or derived from another object.
* This is the "real" value used by "normal" scans..
*/
@Column({ nullable: true })
@IsInt()
@@ -58,6 +58,14 @@ export class Scan {
return this._distance;
}
/**
* The scan's distance in meters.
* Can be set manually or derived from another object.
*/
public set distance(value: number) {
this._distance = value;
}
/**
* Turns this entity into it's response class.
*/