mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
change updatedTime into a Date
This commit is contained in:
@@ -59,7 +59,7 @@ export class ChapmanApiBasedParkingRepositoryLoader implements ParkingRepository
|
||||
name: jsonStructure.Name,
|
||||
spotsAvailable: jsonStructure.CurrentCount > jsonStructure.Capacity ? jsonStructure.Capacity : jsonStructure.CurrentCount,
|
||||
address: jsonStructure.Address,
|
||||
updatedTimeMs: Date.now(),
|
||||
updatedTime: Date.now(),
|
||||
}
|
||||
|
||||
return structureToReturn;
|
||||
|
||||
@@ -12,7 +12,7 @@ const parkingStructures: IParkingStructure[] = [
|
||||
},
|
||||
name: "Anderson Structure",
|
||||
id: "1",
|
||||
updatedTimeMs: Date.now(),
|
||||
updatedTime: Date.now(),
|
||||
},
|
||||
{
|
||||
address: "200 W Sycamore Ave, Orange, CA 92866-1053",
|
||||
@@ -24,7 +24,7 @@ const parkingStructures: IParkingStructure[] = [
|
||||
},
|
||||
name: "Barrera",
|
||||
id: "2",
|
||||
updatedTimeMs: Date.now(),
|
||||
updatedTime: Date.now(),
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user