update parking code

This commit is contained in:
2025-04-29 16:12:31 -07:00
parent 563362b0b5
commit 518044d860
2 changed files with 4 additions and 1 deletions

View File

@@ -58,7 +58,8 @@ export class ChapmanApiBasedParkingRepositoryLoader implements ParkingRepository
id: ChapmanApiBasedParkingRepositoryLoader.generateId(jsonStructure.Address), id: ChapmanApiBasedParkingRepositoryLoader.generateId(jsonStructure.Address),
name: jsonStructure.Name, name: jsonStructure.Name,
spotsAvailable: jsonStructure.CurrentCount > jsonStructure.Capacity ? jsonStructure.Capacity : jsonStructure.CurrentCount, spotsAvailable: jsonStructure.CurrentCount > jsonStructure.Capacity ? jsonStructure.Capacity : jsonStructure.CurrentCount,
address: jsonStructure.Address address: jsonStructure.Address,
updatedTimeMs: Date.now(),
} }
return structureToReturn; return structureToReturn;

View File

@@ -12,6 +12,7 @@ const parkingStructures: IParkingStructure[] = [
}, },
name: "Anderson Structure", name: "Anderson Structure",
id: "1", id: "1",
updatedTimeMs: Date.now(),
}, },
{ {
address: "200 W Sycamore Ave, Orange, CA 92866-1053", address: "200 W Sycamore Ave, Orange, CA 92866-1053",
@@ -23,6 +24,7 @@ const parkingStructures: IParkingStructure[] = [
}, },
name: "Barrera", name: "Barrera",
id: "2", id: "2",
updatedTimeMs: Date.now(),
} }
]; ];