Release 0.11.1 #196

Merged
niggl merged 8 commits from dev into main 2021-04-22 18:21:17 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit eb526fb57f - Show all commits

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