Implmented getting all scan stations

ref #67
This commit is contained in:
2021-01-07 18:05:54 +01:00
parent 3d2c93b5ac
commit 82644a2ff4
2 changed files with 18 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ import {
IsString
} from "class-validator";
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { ResponseScanStation } from '../responses/ResponseScanStation';
import { Track } from "./Track";
import { TrackScan } from "./TrackScan";
@@ -72,7 +73,7 @@ export class ScanStation {
/**
* Turns this entity into it's response class.
*/
public toResponse() {
return new Error("NotImplemented");
public toResponse(): ResponseScanStation {
return new ResponseScanStation(this);
}
}