mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update parking code
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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(),
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user