mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-21 22:18:17 +02:00
Improve task creation by fixing date handling issues and logging
Fix TypeError in task creation related to date conversion and improve logging for production environment. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f2b9c241-9fdd-4abd-9041-720afc8b27d6 Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
1 parent
a9564c513a
commit
a3d14b03fb
2 files changed
+242
No files matched your search
+242
@@ -0,0 +1,242 @@
|
|||||||
|
|
||||||
|
|
||||||
|
Host
|
||||||
|
|
||||||
|
Administration
|
||||||
|
|
||||||
|
User-related
|
||||||
|
|
||||||
|
|
||||||
|
Environment-related
|
||||||
|
|
||||||
|
Registries
|
||||||
|
|
||||||
|
Logs
|
||||||
|
|
||||||
|
Notifications
|
||||||
|
|
||||||
|
Settings
|
||||||
|
|
||||||
|
New version available 2.33.1
|
||||||
|
DismissSee what's new
|
||||||
|
Community Edition
|
||||||
|
2.27.6 LTS
|
||||||
|
Containers>logiflow-logiflow-1>Logs
|
||||||
|
Container logs
|
||||||
|
|
||||||
|
|
||||||
|
admin
|
||||||
|
Log viewer settings
|
||||||
|
Auto-refresh logs
|
||||||
|
Wrap lines
|
||||||
|
Display timestamps
|
||||||
|
Fetch
|
||||||
|
All logs
|
||||||
|
Search
|
||||||
|
Filter...
|
||||||
|
Lines
|
||||||
|
100
|
||||||
|
Actions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
📋 API PUBLICITIES REQUEST: {
|
||||||
|
|
||||||
|
year: '2025',
|
||||||
|
|
||||||
|
filterYear: 2025,
|
||||||
|
|
||||||
|
storeId: undefined,
|
||||||
|
|
||||||
|
userRole: 'admin'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
📋 CALLING storage.getPublicities: { filterYear: 2025, groupIds: undefined }
|
||||||
|
|
||||||
|
Orders API called with: {
|
||||||
|
|
||||||
|
startDate: undefined,
|
||||||
|
|
||||||
|
endDate: undefined,
|
||||||
|
|
||||||
|
storeId: '2',
|
||||||
|
|
||||||
|
userRole: 'admin'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
🔍 Admin/Directeur orders filtering by store: { storeId: '2', groupIds: [ 2 ], role: 'admin' }
|
||||||
|
|
||||||
|
Fetching all orders
|
||||||
|
|
||||||
|
Deliveries API called with: {
|
||||||
|
|
||||||
|
startDate: undefined,
|
||||||
|
|
||||||
|
endDate: undefined,
|
||||||
|
|
||||||
|
storeId: '2',
|
||||||
|
|
||||||
|
withBL: undefined,
|
||||||
|
|
||||||
|
userRole: 'admin'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
🔍 Admin/Directeur deliveries filtering by store: { storeId: '2', groupIds: [ 2 ], role: 'admin' }
|
||||||
|
|
||||||
|
Fetching all deliveries
|
||||||
|
|
||||||
|
📋 PUBLICITES FETCHED: 29 résultats pour année 2025
|
||||||
|
|
||||||
|
🔍 PREMIERS RESULTATS: [
|
||||||
|
|
||||||
|
'1. N°2501 - Blanc',
|
||||||
|
|
||||||
|
'2. N°2502 - Moins de 1€ 2€ 3€ 4€ 5€',
|
||||||
|
|
||||||
|
'3. N°2503 - Imbattables'
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
Customer Orders returned: 42 items
|
||||||
|
|
||||||
|
GET /api/customer-orders 304 in 119ms
|
||||||
|
|
||||||
|
❌ PRODUCTION: Delivery #127 (store 2) linked to order #81 (store 1) - STORE MISMATCH DETECTED!
|
||||||
|
|
||||||
|
📋 PUBLICITIES RETURNED: { count: 29 }
|
||||||
|
|
||||||
|
🔗 PRODUCTION: getDeliveries() récupéré 59 livraisons avec relations
|
||||||
|
|
||||||
|
Deliveries returned: 59 items
|
||||||
|
|
||||||
|
GET /api/publicities 304 in 138ms
|
||||||
|
|
||||||
|
GET /api/deliveries 304 in 163ms
|
||||||
|
|
||||||
|
🔗 PRODUCTION: getOrders() récupéré 27 commandes avec relations
|
||||||
|
|
||||||
|
Orders returned: 27 items
|
||||||
|
|
||||||
|
GET /api/orders 304 in 197ms
|
||||||
|
|
||||||
|
GET /api/groups 304 in 46ms
|
||||||
|
|
||||||
|
GET /api/user 304 in 4ms
|
||||||
|
|
||||||
|
GET /api/users 304 in 14ms
|
||||||
|
|
||||||
|
HEAD /api/health 200 in 1ms
|
||||||
|
|
||||||
|
📝 POST /api/tasks - Received data: {
|
||||||
|
|
||||||
|
originalBody: {
|
||||||
|
|
||||||
|
title: 'teszt',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-02',
|
||||||
|
|
||||||
|
dueDate: '2025-09-07',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
processedData: {
|
||||||
|
|
||||||
|
title: 'teszt',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-02',
|
||||||
|
|
||||||
|
dueDate: '2025-09-07',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-07',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateValue: '2025-09-07'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
💾 DatabaseStorage.createTask - Input: {
|
||||||
|
|
||||||
|
taskData: {
|
||||||
|
|
||||||
|
title: 'teszt',
|
||||||
|
|
||||||
|
description: 'test',
|
||||||
|
|
||||||
|
priority: 'medium',
|
||||||
|
|
||||||
|
status: 'pending',
|
||||||
|
|
||||||
|
assignedTo: 'Non assigné',
|
||||||
|
|
||||||
|
startDate: '2025-09-02',
|
||||||
|
|
||||||
|
dueDate: '2025-09-07',
|
||||||
|
|
||||||
|
groupId: 2,
|
||||||
|
|
||||||
|
createdBy: 'admin_local'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
dueDate: '2025-09-07',
|
||||||
|
|
||||||
|
dueDateType: 'string',
|
||||||
|
|
||||||
|
dueDateISO: '2025-09-07'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Error creating task: TypeError: value.toISOString is not a function
|
||||||
|
|
||||||
|
at PgTimestamp.mapToDriverValue (file:///app/node_modules/drizzle-orm/pg-core/columns/timestamp.js:34:18)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:131:73
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:92:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
at file:///app/node_modules/drizzle-orm/sql/sql.js:95:21
|
||||||
|
|
||||||
|
at Array.map (<anonymous>)
|
||||||
|
|
||||||
|
at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32)
|
||||||
|
|
||||||
|
POST /api/tasks 500 in 9ms
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 267 KiB |
Reference in new issue
Block a user