diff --git a/attached_assets/Pasted--Host-Administration-User-related-Environment-related-Registries-Logs-Notific-1756807234263_1756807234264.txt b/attached_assets/Pasted--Host-Administration-User-related-Environment-related-Registries-Logs-Notific-1756807234263_1756807234264.txt new file mode 100644 index 0000000..8c8acf4 --- /dev/null +++ b/attached_assets/Pasted--Host-Administration-User-related-Environment-related-Registries-Logs-Notific-1756807234263_1756807234264.txt @@ -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 () + + 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 () + + 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 () + + at SQL.buildQueryFromSourceParams (file:///app/node_modules/drizzle-orm/sql/sql.js:73:32) + +POST /api/tasks 500 in 9ms \ No newline at end of file diff --git a/attached_assets/{529AECE1-42BB-4DB6-9E8D-9BA49951016E}_1756807222272.png b/attached_assets/{529AECE1-42BB-4DB6-9E8D-9BA49951016E}_1756807222272.png new file mode 100644 index 0000000..0f00934 Binary files /dev/null and b/attached_assets/{529AECE1-42BB-4DB6-9E8D-9BA49951016E}_1756807222272.png differ