Implmented getting all scan stations

ref #67
This commit is contained in:
niggl committed 2021-01-07 18:05:54 +01:00
1 parent 3d2c93b5ac
commit 82644a2ff4
2 files changed
+18 -17

No files matched your search

+3 -2
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);
}
}