Add comments

This commit is contained in:
Fred Boniface 2023-09-20 11:37:04 +01:00
parent 7e6568d13a
commit 0ce32f4a34
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ export async function fetchStaffLdb(station: string): Promise<ApiResponse<StaffL
return parseFormat(JSON.stringify(resJs));
}
// Parse dates within the JSON response
function parseFormat(jsonString: any): ApiResponse<StaffLdb> {
return JSON.parse(jsonString, (key, value) => {
if (typeof value === 'string') {