Project

General

Profile

Actions

Bug #312

open
PK

Title: Fix `getDailyTrend()` in dashboard service

Bug #312: Title: Fix `getDailyTrend()` in dashboard service

Added by Phoung Kosal 5 days ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Start date:
04/08/2026
Due date:
04/08/2026 (5 days late)
% Done:

100%

Estimated time:
1:00 h

Description

  • Replace broken TypeORM query in delivery-app-api/src/modules/dashboard/dashboard.service.ts
    • Use a raw PostgreSQL query with generate_series to return one row per day
    • Aggregate delivery_requests, delivery_orders, and completed requests correctly
    • Ensure date range filtering works for the selected dashboard period

No data to display

Actions

Also available in: PDF Atom