Adjusted modulo for new fixed card length

This commit is contained in:
Nicolai Ort 2023-03-18 22:14:50 +01:00
parent 38da2d3318
commit 9a8d618ae4
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export class CreateTrackScan {
* @returns The runnerCard whom's id you provided.
*/
public async getCard(): Promise<RunnerCard> {
const id = this.card % 20000000;
const id = this.card % 2000000;
const runnerCard = await getConnection().getRepository(RunnerCard).findOne({ id: id }, { relations: ["runner"] });
if (!runnerCard) {
throw new RunnerCardNotFoundError();