mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Replaces direct webhook calls for invoice sending with a backend API endpoint, utilizing multer for file uploads and form-data for robust data transmission. Includes improved error handling and logging. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: e89da884-7d51-4b3d-8af5-22493ce6f2c1 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/qOJ89TE
203 lines
3.6 KiB
Plaintext
203 lines
3.6 KiB
Plaintext
|
|
|
|
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 not found with username: admin_local
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🔍 [PRODUCTION] User search result: Not found
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🎯 [PRODUCTION] Found announcements: 4
|
|
|
|
GET /api/announcements 304 in 8ms
|
|
|
|
📢 [SERVER] Fetching announcements for user: _1754936203292 environment: production
|
|
|
|
📢 [SERVER] User found: { username: 'ff292', role: 'employee' }
|
|
|
|
🎯 [PRODUCTION] Using PostgreSQL DASHBOARD_MESSAGES table
|
|
|
|
🔍 [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 not found with username: admin_local
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🔍 [PRODUCTION] User search result: Not found
|
|
|
|
🎯 [PRODUCTION] Found announcements: 4
|
|
|
|
GET /api/announcements 304 in 9ms
|
|
|
|
GET /api/groups 304 in 3ms
|
|
|
|
GET /api/user 304 in 5ms
|
|
|
|
GET /api/suppliers 304 in 4ms
|
|
|
|
GET /api/dlc-products 304 in 45ms
|
|
|
|
HEAD /api/health 200 in 0ms
|
|
|