Added basic response calss for runner cards

ref #77
This commit is contained in:
niggl committed 2021-01-09 11:15:29 +01:00
1 parent 52eb7b1afe
commit af3a9e5ce2
2 files changed
+49 -1

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ import {
IsString
} from "class-validator";
import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { ResponseRunnerCard } from '../responses/ResponseRunnerCard';
import { Runner } from "./Runner";
import { TrackScan } from "./TrackScan";
@@ -62,6 +63,6 @@ export class RunnerCard {
* Turns this entity into it's response class.
*/
public toResponse() {
return new Error("NotImplemented");
return new ResponseRunnerCard(this);
}
}