mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update docker-entrypoint.sh to ensure webhook_bap_config table creation and manage migration errors gracefully. Add default webhook configuration and handle potential database connection issues during script execution. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cfbfe47c-0c9a-4ebf-8a41-2937407eccff Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cfbfe47c-0c9a-4ebf-8a41-2937407eccff/qkkp1hi
201 lines
4.0 KiB
Plaintext
201 lines
4.0 KiB
Plaintext
|
|
|
|
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_local
|
|
|
|
Customer Orders API called with: { groupIds: [ 1 ], userRole: 'admin' }
|
|
|
|
🔍 [PRODUCTION] User search result: Found
|
|
|
|
🔍 [PRODUCTION] User search result: Not found
|
|
|
|
🎯 [PRODUCTION] Found announcements: 2
|
|
|
|
❌ [PRODUCTION] User not found with username: admin_local
|
|
|
|
GET /api/announcements 304 in 103ms
|
|
|
|
Customer Orders returned: 7 items
|
|
|
|
GET /api/customer-orders 304 in 108ms
|
|
|
|
🔗 PRODUCTION: getDeliveries() récupéré 72 livraisons avec relations
|
|
|
|
Deliveries returned: 72 items
|
|
|
|
GET /api/deliveries 304 in 171ms
|
|
|
|
GET /api/groups 304 in 109ms
|
|
|
|
GET /api/user 304 in 4ms
|
|
|
|
GET /api/user 304 in 6ms
|
|
|
|
GET /api/backups 304 in 8ms
|
|
|
|
⚠️ Table webhook_bap_config n'existe pas, retour config par défaut
|
|
|
|
GET /api/webhook-bap-config 304 in 7ms
|
|
|
|
❌ Erreur récupération config webhook BAP: error: relation "webhook_bap_config" does not exist
|
|
|
|
at /app/node_modules/pg-pool/index.js:45:11
|
|
|
|
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
|
|
at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22
|
|
|
|
at async DatabaseStorage.getWebhookBapConfig (file:///app/dist/index.js:2815:26)
|
|
|
|
at async file:///app/dist/index.js:12402:22 {
|
|
|
|
length: 117,
|
|
|
|
severity: 'ERROR',
|
|
|
|
code: '42P01',
|
|
|
|
detail: undefined,
|
|
|
|
hint: undefined,
|
|
|
|
position: '97',
|
|
|
|
internalPosition: undefined,
|
|
|
|
internalQuery: undefined,
|
|
|
|
where: undefined,
|
|
|
|
schema: undefined,
|
|
|
|
table: undefined,
|
|
|
|
column: undefined,
|
|
|
|
dataType: undefined,
|
|
|
|
constraint: undefined,
|
|
|
|
file: 'parse_relation.c',
|
|
|
|
line: '1392',
|
|
|
|
routine: 'parserOpenTable'
|
|
|
|
}
|
|
|
|
HEAD /api/health 200 in 1ms
|
|
|
|
🔍 Test webhook BAP: {
|
|
|
|
url: 'https://workflow.ffnancy.fr/webhook-test/a3d03176-b72f-412d-8fb9-f920b9fbab4d'
|
|
|
|
}
|
|
|
|
🌐 Réponse test webhook: { status: 404, ok: false }
|
|
|
|
POST /api/webhook-bap-config/test 500 in 86ms
|
|
|
|
❌ Erreur test webhook BAP: Error: HTTP 404: Not Found
|
|
|
|
at file:///app/dist/index.js:12481:15
|
|
|
|
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
|
|
🔍 Test webhook BAP: {
|
|
|
|
url: 'https://workflow.ffnancy.fr/webhook-test/a3d03176-b72f-412d-8fb9-f920b9fbab4d'
|
|
|
|
}
|
|
|
|
🌐 Réponse test webhook: { status: 500, ok: false }
|
|
|
|
❌ Erreur test webhook BAP: Error: HTTP 500: Internal Server Error
|
|
|
|
at file:///app/dist/index.js:12481:15
|
|
|
|
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
|
|
POST /api/webhook-bap-config/test 500 in 72ms
|
|
|
|
HEAD /api/health 200 in 0ms
|
|
|
|
❌ Erreur sauvegarde config webhook BAP: error: relation "webhook_bap_config" does not exist
|
|
|
|
at /app/node_modules/pg-pool/index.js:45:11
|
|
|
|
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
|
|
|
at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22
|
|
|
|
at async DatabaseStorage.getWebhookBapConfig (file:///app/dist/index.js:2815:26)
|
|
|
|
at async file:///app/dist/index.js:12431:30 {
|
|
|
|
length: 117,
|
|
|
|
severity: 'ERROR',
|
|
|
|
code: '42P01',
|
|
|
|
detail: undefined,
|
|
|
|
hint: undefined,
|
|
|
|
position: '97',
|
|
|
|
internalPosition: undefined,
|
|
|
|
internalQuery: undefined,
|
|
|
|
where: undefined,
|
|
|
|
schema: undefined,
|
|
|
|
table: undefined,
|
|
|
|
column: undefined,
|
|
|
|
dataType: undefined,
|
|
|
|
constraint: undefined,
|
|
|
|
file: 'parse_relation.c',
|
|
|
|
line: '1392',
|
|
|
|
routine: 'parserOpenTable'
|
|
|
|
}
|
|
|
|
POST /api/webhook-bap-config 500 in 6ms |