Fix playbook advance duplicating entries instead of updating

advanceStep was not passing the progress row id, so upsertPlaybookProgress
treated every advance as a new insert instead of updating the existing row.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-09 16:04:36 -04:00
parent 34e3dd650b
commit a4769ea12b

View File

@@ -95,6 +95,7 @@ export default function PlaybooksPage() {
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ body: JSON.stringify({
action: 'playbooks.progress.upsert', action: 'playbooks.progress.upsert',
id: p.id,
Account_Name: p.Account_Name, Account_Name: p.Account_Name,
playbook_id: p.playbook_id, playbook_id: p.playbook_id,
current_step: isComplete ? p.current_step : nextStep, current_step: isComplete ? p.current_step : nextStep,