mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Fixed schema names
This commit is contained in:
@@ -244,7 +244,7 @@ export class Pass implements PassIndexSignature {
|
||||
}
|
||||
|
||||
const validBeacons = data.reduce<schema.Beacon[]>((acc, current) => {
|
||||
if (!(Object.keys(current).length && schema.isValid(current, "locations"))) {
|
||||
if (!(Object.keys(current).length && schema.isValid(current, "beaconsDict"))) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ export class Pass implements PassIndexSignature {
|
||||
}
|
||||
|
||||
const validLocations = data.reduce<schema.Location[]>((acc, current) => {
|
||||
if (!(Object.keys(current).length && schema.isValid(current, "locations"))) {
|
||||
if (!(Object.keys(current).length && schema.isValid(current, "locationsDict"))) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user