Modifications apportées : - Le formulaire d'édition de facture pré-remplit maintenant correctement les valeurs existantes grâce à useEffect - Ajout de logs détaillés dans la route upload pour diagnostiquer le problème de stockage des fichiers PDF - Les valeurs ne sont plus perdues lors de l'édition d'une facture Note : Le problème d'export PDF (404) persiste car les fichiers ne sont pas stockés physiquement. Des logs ont été ajoutés pour identifier la cause lors du prochain upload.
31 lines
1.8 KiB
JSON
31 lines
1.8 KiB
JSON
{
|
|
"query": "SELECT id, fileName, fileKey, fileUrl, processingStatus FROM sourceFiles ORDER BY createdAt DESC LIMIT 3;",
|
|
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.bd4328423008 --database fo4DRyBgjsuiigFAgNLuWm --execute SELECT id, fileName, fileKey, fileUrl, processingStatus FROM sourceFiles ORDER BY createdAt DESC LIMIT 3;",
|
|
"rows": [
|
|
{
|
|
"id": "60001",
|
|
"fileName": "FACTURES FOURNISSEURS.pdf",
|
|
"fileKey": "2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf",
|
|
"fileUrl": "/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf",
|
|
"processingStatus": "completed"
|
|
},
|
|
{
|
|
"id": "30001",
|
|
"fileName": "FACTURES FOURNISSEURS.pdf",
|
|
"fileKey": "2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf",
|
|
"fileUrl": "/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf",
|
|
"processingStatus": "completed"
|
|
},
|
|
{
|
|
"id": "1",
|
|
"fileName": "FACTURES FOURNISSEURS.pdf",
|
|
"fileKey": "2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf",
|
|
"fileUrl": "/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf",
|
|
"processingStatus": "completed"
|
|
}
|
|
],
|
|
"messages": [],
|
|
"stdout": "id\tfileName\tfileKey\tfileUrl\tprocessingStatus\n60001\tFACTURES FOURNISSEURS.pdf\t2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\tcompleted\n30001\tFACTURES FOURNISSEURS.pdf\t2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\tcompleted\n1\tFACTURES FOURNISSEURS.pdf\t2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\tcompleted\n",
|
|
"stderr": "",
|
|
"execution_time_ms": 48
|
|
} |