api/checkpoint: bind the row the hand merge dropped (every caller read "cp is not defined" from 12:23 BST)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
85304c9c1b
commit
b68f0daa14
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ export default async function handler(req, res) {
|
|||
res.setHeader('Cache-Control', 'no-store');
|
||||
return res.status(404).json({ ok: false, error: 'no certified checkpoint stored yet' });
|
||||
}
|
||||
return res.status(200).json({ ok: true, now: new Date().toISOString(), ...cp });
|
||||
// the hand merge of 12:22 BST (a0b62cf7) returned `...cp` with no cp bound: every caller read "cp is not defined" (8 Oct 2026, build-server lane)
|
||||
return res.status(200).json({ ok: true, now: new Date().toISOString(), ...shape(row, source) });
|
||||
} catch (e) {
|
||||
res.setHeader('Cache-Control', 'no-store');
|
||||
return res.status(500).json({ ok: false, error: String(e.message || e) });
|
||||
|
|
|
|||
Loading…
Reference in a new issue