diff --git a/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270133118_1762270133118.txt b/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270133118_1762270133118.txt new file mode 100644 index 0000000..80b9c7c --- /dev/null +++ b/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270133118_1762270133118.txt @@ -0,0 +1,245 @@ + +Images +Networks +Volumes +Events + +Host + +Administration + +User-related + + +Environment-related + +Registries + +Logs + +Notifications + +Settings + +New version available 2.33.3 +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 + + + + + storeId: 2, + + createdBy: 'admin', + + createdAt: 2025-09-24T11:26:13.521Z + + }, + + { + + id: 17, + + title: 'Module Avoir', + + content: "Le module d'avoir est en place", + + type: 'error', + + storeId: 1, + + createdBy: 'admin', + + createdAt: 2025-09-09T07:47:47.650Z + + }, + + { + + id: 16, + + title: 'Mise à jour Prix', + + content: 'Merci de mettre vos prix a jour tous les matins, certain magasin ne le font pas.', + + type: 'success', + + storeId: null, + + createdBy: 'admin', + + createdAt: 2025-08-18T10:45:08.585Z + + }, + + { + + id: 8, + + title: 'Bon de Livraison', + + content: 'Lorsque vous rentrez un numéro de bon de livraison, faite le a l identique, même les majuscules. Pour My candy Shop, prendre le numéro de commande.', + + type: 'info', + + storeId: null, + + createdBy: 'admin_local', + + createdAt: 2025-08-07T11:04:38.123Z + + } + +] + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin_local + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +❌ [PRODUCTION] User not found with username: admin_local + +🔍 [PRODUCTION] User search result: Not found + +🎯 [PRODUCTION] Found announcements: 4 + +GET /api/announcements 304 in 18ms + +📢 [SERVER] Fetching announcements for user: _1754936203292 environment: production + +📢 [SERVER] User found: { username: 'ff292', role: 'employee' } + +🎯 [PRODUCTION] Using PostgreSQL DASHBOARD_MESSAGES table + +GET /api/groups 304 in 4ms + +🔍 [PRODUCTION] Raw messages from DB: 4 items: [ + + { + + id: 20, + + title: 'DLC', + + content: 'Attention des DLC sont en expiré bientôt ou expiré, il faut s en occuper', + + type: 'success', + + storeId: 2, + + createdBy: 'admin', + + createdAt: 2025-09-24T11:26:13.521Z + + }, + + { + + id: 17, + + title: 'Module Avoir', + + content: "Le module d'avoir est en place", + + type: 'error', + + storeId: 1, + + createdBy: 'admin', + + createdAt: 2025-09-09T07:47:47.650Z + + }, + + { + + id: 16, + + title: 'Mise à jour Prix', + + content: 'Merci de mettre vos prix a jour tous les matins, certain magasin ne le font pas.', + + type: 'success', + + storeId: null, + + createdBy: 'admin', + + createdAt: 2025-08-18T10:45:08.585Z + + }, + + { + + id: 8, + + title: 'Bon de Livraison', + + content: 'Lorsque vous rentrez un numéro de bon de livraison, faite le a l identique, même les majuscules. Pour My candy Shop, prendre le numéro de commande.', + + type: 'info', + + storeId: null, + + createdBy: 'admin_local', + + createdAt: 2025-08-07T11:04:38.123Z + + } + +] + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin_local + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Not found + +❌ [PRODUCTION] User not found with username: admin_local + +🎯 [PRODUCTION] Found announcements: 4 + +GET /api/announcements 304 in 8ms + +GET /api/user 304 in 13ms + +GET /api/suppliers 304 in 4ms + +GET /api/dlc-products 304 in 58ms + diff --git a/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270274693_1762270274693.txt b/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270274693_1762270274693.txt new file mode 100644 index 0000000..80b9c7c --- /dev/null +++ b/attached_assets/Pasted--Images-Networks-Volumes-Events-Host-Administration-User-related-Environment-relat-1762270274693_1762270274693.txt @@ -0,0 +1,245 @@ + +Images +Networks +Volumes +Events + +Host + +Administration + +User-related + + +Environment-related + +Registries + +Logs + +Notifications + +Settings + +New version available 2.33.3 +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 + + + + + storeId: 2, + + createdBy: 'admin', + + createdAt: 2025-09-24T11:26:13.521Z + + }, + + { + + id: 17, + + title: 'Module Avoir', + + content: "Le module d'avoir est en place", + + type: 'error', + + storeId: 1, + + createdBy: 'admin', + + createdAt: 2025-09-09T07:47:47.650Z + + }, + + { + + id: 16, + + title: 'Mise à jour Prix', + + content: 'Merci de mettre vos prix a jour tous les matins, certain magasin ne le font pas.', + + type: 'success', + + storeId: null, + + createdBy: 'admin', + + createdAt: 2025-08-18T10:45:08.585Z + + }, + + { + + id: 8, + + title: 'Bon de Livraison', + + content: 'Lorsque vous rentrez un numéro de bon de livraison, faite le a l identique, même les majuscules. Pour My candy Shop, prendre le numéro de commande.', + + type: 'info', + + storeId: null, + + createdBy: 'admin_local', + + createdAt: 2025-08-07T11:04:38.123Z + + } + +] + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin_local + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +❌ [PRODUCTION] User not found with username: admin_local + +🔍 [PRODUCTION] User search result: Not found + +🎯 [PRODUCTION] Found announcements: 4 + +GET /api/announcements 304 in 18ms + +📢 [SERVER] Fetching announcements for user: _1754936203292 environment: production + +📢 [SERVER] User found: { username: 'ff292', role: 'employee' } + +🎯 [PRODUCTION] Using PostgreSQL DASHBOARD_MESSAGES table + +GET /api/groups 304 in 4ms + +🔍 [PRODUCTION] Raw messages from DB: 4 items: [ + + { + + id: 20, + + title: 'DLC', + + content: 'Attention des DLC sont en expiré bientôt ou expiré, il faut s en occuper', + + type: 'success', + + storeId: 2, + + createdBy: 'admin', + + createdAt: 2025-09-24T11:26:13.521Z + + }, + + { + + id: 17, + + title: 'Module Avoir', + + content: "Le module d'avoir est en place", + + type: 'error', + + storeId: 1, + + createdBy: 'admin', + + createdAt: 2025-09-09T07:47:47.650Z + + }, + + { + + id: 16, + + title: 'Mise à jour Prix', + + content: 'Merci de mettre vos prix a jour tous les matins, certain magasin ne le font pas.', + + type: 'success', + + storeId: null, + + createdBy: 'admin', + + createdAt: 2025-08-18T10:45:08.585Z + + }, + + { + + id: 8, + + title: 'Bon de Livraison', + + content: 'Lorsque vous rentrez un numéro de bon de livraison, faite le a l identique, même les majuscules. Pour My candy Shop, prendre le numéro de commande.', + + type: 'info', + + storeId: null, + + createdBy: 'admin_local', + + createdAt: 2025-08-07T11:04:38.123Z + + } + +] + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin + +🔍 [PRODUCTION] Looking for user with username: admin_local + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Found + +🔍 [PRODUCTION] User search result: Not found + +❌ [PRODUCTION] User not found with username: admin_local + +🎯 [PRODUCTION] Found announcements: 4 + +GET /api/announcements 304 in 8ms + +GET /api/user 304 in 13ms + +GET /api/suppliers 304 in 4ms + +GET /api/dlc-products 304 in 58ms + diff --git a/attached_assets/{1665ED95-20B6-4344-8493-11A55C558DA8}_1762270285012.png b/attached_assets/{1665ED95-20B6-4344-8493-11A55C558DA8}_1762270285012.png new file mode 100644 index 0000000..46caf83 Binary files /dev/null and b/attached_assets/{1665ED95-20B6-4344-8493-11A55C558DA8}_1762270285012.png differ diff --git a/attached_assets/{5DD75BD0-365E-402A-99DA-82F24637B27B}_1762270384666.png b/attached_assets/{5DD75BD0-365E-402A-99DA-82F24637B27B}_1762270384666.png new file mode 100644 index 0000000..2d67c53 Binary files /dev/null and b/attached_assets/{5DD75BD0-365E-402A-99DA-82F24637B27B}_1762270384666.png differ diff --git a/attached_assets/{F1228CA9-8789-481D-9840-D8D872BAF1ED}_1762270116892.png b/attached_assets/{F1228CA9-8789-481D-9840-D8D872BAF1ED}_1762270116892.png new file mode 100644 index 0000000..e609d8a Binary files /dev/null and b/attached_assets/{F1228CA9-8789-481D-9840-D8D872BAF1ED}_1762270116892.png differ diff --git a/server/routes.ts b/server/routes.ts index 9f9ab02..7f61518 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -4,6 +4,7 @@ import { storage } from "./storage"; import { setupLocalAuth, requireAuth } from "./localAuth"; import { requireModulePermission, requireAdmin, requirePermission } from "./permissions"; import { db, pool } from "./db"; +import Busboy from "busboy"; console.log('🔍 Using development storage and authentication');