fix: contact database read/write mismatch overwrote all entries
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 21s
All checks were successful
Deploy Production / Deploy to Production (push) Successful in 21s
Read was from the white-paper page, write was to livres-blancs — so each submission started from an empty (or wrong) entries array and replaced the full database. Both now read from livres-blancs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
82e69c7259
commit
1cbad99143
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ return [
|
|||
// ── Stocker le lead dans contactDatabase ──────────────────
|
||||
$company = trim($body['company'] ?? '');
|
||||
$role = trim($body['role'] ?? '');
|
||||
$entries = $page->contactDatabase()->toStructure()->toArray();
|
||||
$entries = page('livres-blancs')->contactDatabase()->toStructure()->toArray();
|
||||
|
||||
$existingIndex = null;
|
||||
foreach ($entries as $i => $entry) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue