Adjusted modulo for new fixed card length
This commit is contained in:
parent
38da2d3318
commit
9a8d618ae4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue