Skip to content

fix: check startup and search ownership when saving a person - #41

Merged
VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/people-save-ownership
Oct 31, 2026
Merged

VolodymyrLinuxovich merged 3 commits into
mainfrom
fix/people-save-ownership

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #40

Summary

The people save route now looks up startupId, searchRunId and searchResultId under the caller's user id. An id that is not the caller's returns 400 before any list or saved person is written. Requests without these ids work as before.

Validation

  • New tests in people-save.test.ts. Three of them fail on main.
  • npm test passes with 178 tests.
  • npm run typecheck and npm run lint pass.

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Nov 1, 2026 12:03am UTC

@VolodymyrLinuxovich
VolodymyrLinuxovich merged commit b8b804d into main Oct 31, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 65cfd5c6 Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving a person accepts another user's startupId

1 participant