Restauration d'archive → toujours en liste d'attente

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Etienne Delvarre
2026-06-03 15:42:47 +02:00
parent 2c170f9ef2
commit e74e65bd90
+1 -1
View File
@@ -3181,7 +3181,7 @@ async function restoreVersion() {
if (!v) return; if (!v) return;
const snap = JSON.parse(v.Snapshot); const snap = JSON.parse(v.Snapshot);
const { Title, Acte, Ordre, Personnage, Tags, Notes } = snap; const { Title, Acte, Ordre, Personnage, Tags, Notes } = snap;
const data = { Title, Acte: Acte || 'En attente', Ordre: Ordre || 999, Personnage, Tags, Notes, 'Résumé': snap['Résumé'], 'Intérêt narratif': snap['Intérêt narratif'], Implications: snap.Implications, Origine: snap.Origine, 'Lien rédaction': snap['Lien rédaction'] }; const data = { Title, Acte: 'En attente', Ordre: 999, Personnage, Tags, Notes, 'Résumé': snap['Résumé'], 'Intérêt narratif': snap['Intérêt narratif'], Implications: snap.Implications, Origine: snap.Origine, 'Lien rédaction': snap['Lien rédaction'] };
const r = await fetch('/api/records', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }); const r = await fetch('/api/records', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) });
if (r.ok) { if (r.ok) {
closeVersionPanel(); closeVersionPanel();