Add comments
This commit is contained in:
parent
7e6568d13a
commit
0ce32f4a34
@ -25,6 +25,7 @@ export async function fetchStaffLdb(station: string): Promise<ApiResponse<StaffL
|
|||||||
return parseFormat(JSON.stringify(resJs));
|
return parseFormat(JSON.stringify(resJs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Parse dates within the JSON response
|
||||||
function parseFormat(jsonString: any): ApiResponse<StaffLdb> {
|
function parseFormat(jsonString: any): ApiResponse<StaffLdb> {
|
||||||
return JSON.parse(jsonString, (key, value) => {
|
return JSON.parse(jsonString, (key, value) => {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
|
Loading…
Reference in New Issue
Block a user