Fixes after changing api names

This commit is contained in:
2024-07-25 22:16:16 -05:00
parent a849b065a1
commit 8a00507431
2 changed files with 11 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ export const updateEmployeeStatusByName =
interface HistoryEntry {
name: string;
status: string;
time: Date;
updatedAt: Date;
}
interface PaginatedHistory {
data: HistoryEntry[];
@@ -96,7 +96,7 @@ export const getHistory =
const formattedResults: HistoryEntry[] = historyRows.map(row => ({
name: row.name,
status: row.status,
time: new Date(row.updatedAt),
updatedAt: new Date(row.updatedAt),
}));
return {
data: formattedResults,