develop #1
@@ -38,7 +38,7 @@ services:
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
|
||||
|
||||
frontend:
|
||||
image: dymai/syntria-frontend:1.0.14
|
||||
image: dymai/syntria-frontend:1.0.15
|
||||
container_name: syntria-frontend-prod
|
||||
restart: always
|
||||
depends_on:
|
||||
|
||||
@@ -3227,7 +3227,9 @@ function ReportsTab({ user }) {
|
||||
const API_URL = import.meta.env.VITE_API_URL || ''
|
||||
|
||||
let url = `${API_URL}/api/reports/dashboard?`
|
||||
if (filtersToApply.date) url += `start_date=${filtersToApply.date}&`
|
||||
if (filtersToApply.date) {
|
||||
url += `start_date=${filtersToApply.date}&end_date=${filtersToApply.date}&`
|
||||
}
|
||||
if (filtersToApply.mechanicId) url += `mechanic_id=${filtersToApply.mechanicId}&`
|
||||
|
||||
console.log('Dashboard URL:', url)
|
||||
@@ -3255,7 +3257,9 @@ function ReportsTab({ user }) {
|
||||
const API_URL = import.meta.env.VITE_API_URL || ''
|
||||
|
||||
let url = `${API_URL}/api/reports/inspections?`
|
||||
if (filtersToApply.date) url += `start_date=${filtersToApply.date}&`
|
||||
if (filtersToApply.date) {
|
||||
url += `start_date=${filtersToApply.date}&end_date=${filtersToApply.date}&`
|
||||
}
|
||||
if (filtersToApply.mechanicId) url += `mechanic_id=${filtersToApply.mechanicId}&`
|
||||
|
||||
console.log('Inspections URL:', url)
|
||||
|
||||
Reference in New Issue
Block a user