fix: correct time_entries column name from date_worked to entry_date
This commit is contained in:
parent
aec21d2b1e
commit
2ebf8e6732
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue