Added fix for the appended 2
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Nicolai Ort 2021-04-22 19:52:32 +02:00
parent 348fe52c42
commit eb526fb57f
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}