Release 0.11.1 #196
|
@ -57,7 +57,8 @@ export class CreateTrackScan {
|
|||
* @returns The runnerCard whom's id you provided.
|
||||
*/
|
||||
public async getCard(): Promise<RunnerCard> {
|
||||
const track = await getConnection().getRepository(RunnerCard).findOne({ id: this.card }, { relations: ["runner"] });
|
||||
const id = this.card % 200000000000;
|
||||
const track = await getConnection().getRepository(RunnerCard).findOne({ id: id }, { relations: ["runner"] });
|
||||
if (!track) {
|
||||
throw new RunnerCardNotFoundError();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue