StaffLDB-Minify #1
@ -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