Implmented the EAN generation

ref #77
This commit is contained in:
2021-01-09 12:24:05 +01:00
parent df39166279
commit 860680d001
3 changed files with 41 additions and 4 deletions

View File

@@ -42,7 +42,12 @@ export class ResponseRunnerCard {
this.id = card.id;
if (!card.runner) { this.runner = null }
else { this.runner = card.runner.toResponse(); }
this.code = card.code;
try {
this.code = card.code;
} catch (error) {
this.code = "0000000000000"
}
this.enabled = card.enabled;
}
}