Implmented the EAN generation

ref #77
This commit is contained in:
niggl committed 2021-01-09 12:24:05 +01:00
1 parent df39166279
commit 860680d001
3 files changed
+41 -4

No files matched your search

+6 -1
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;
}
}