fix: correct time_entries column name from date_worked to entry_date

This commit is contained in:
root 2026-02-02 23:48:17 -05:00
parent aec21d2b1e
commit 2ebf8e6732

View file

@ -61,7 +61,7 @@ export async function GET(request: NextRequest) {
const timeEntriesResult = await postgresClient.query(
`SELECT COALESCE(SUM(hours_worked), 0) as hours
FROM time_entries
WHERE date_worked >= DATE_TRUNC('week', CURRENT_DATE)`
WHERE entry_date >= DATE_TRUNC('week', CURRENT_DATE)`
);
// Active companies