Skip to content

Feat/swims honeypot - #293

Merged
yrska merged 10 commits into
mainfrom
feat/swims-honeypot
Oct 7, 2026
Merged

yrska merged 10 commits into
mainfrom
feat/swims-honeypot

Conversation

@jacobwgray

Copy link
Copy Markdown
Contributor

closes #<issue_number>

🌟 Context

Creating a honeypot to stop bot spam


📝 Description


📋 Notes

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
aucc Ready Ready Preview Oct 7, 2026 10:22am UTC

@yrska yrska left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found the issue!
Syntax error The merge left an extra closing brace in src/collections/swims.ts, right after the beforeChange array, line 48

    ],
  }, // <- delete this line

  },   
  fields: [

2. Still open from the last review:

  • Make the honeypot a virtual field (virtual: true, admin: { hidden: true }) so it isn't stored. Then the migration can be deleted entirely.
  • Throw new APIError('Submission rejected', 400) instead of a plain Error, which returns a 500.
  • Replace (values as any).honeypot with values.honeypot.
  • The linter is asking for @ts-expect-error instead of @ts-ignore in the test.

3. If you do keep the column: typically pnpm payload migrate:create also creates a .json file, can you check if this was missed in the commit? This will also be required for the migration once it is in.

@yrska yrska left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All sorted, thanks for working through these ✅

  • Syntax error fixed, checks green.
  • Honeypot is now virtual and hidden, so no migration is needed.
  • APIError(400), no as any, @ts-expect-error in the tests.

@yrska
yrska merged commit 4b6d402 into main Oct 7, 2026
6 of 7 checks passed
@yrska
yrska deleted the feat/swims-honeypot branch October 7, 2026 22:27
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

🚀 Preview deployment is live: Preview Link

This branch was successfully deployed

1 active deployment
Preview — d493b516 Deployed Oct 7, 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.

2 participants