Compare commits

..

2 Commits

Author SHA1 Message Date
Bas
53ab62ed10 Merge pull request #68 from xtr-dev/dev
Fix filterOptions ObjectId casting error and bump version to 0.4.20
2025-10-07 22:04:22 +02:00
de57dd4102 Fix filterOptions ObjectId casting error and bump version to 0.4.20
Fixed incorrect usage of resolveID in filterOptions where { id } was passed instead of id directly. This caused ObjectId casting errors when the id parameter was a populated object.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 22:01:23 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@xtr-dev/payload-mailing",
"version": "0.4.19",
"version": "0.4.20",
"description": "Template-based email system with scheduling and job processing for PayloadCMS",
"type": "module",
"main": "dist/index.js",

View File

@@ -206,7 +206,7 @@ const Emails: CollectionConfig = {
readOnly: true,
},
filterOptions: ({ id }) => {
const emailId = resolveID({ id })
const emailId = resolveID(id)
return {
'input.emailId': {
equals: emailId ? String(emailId) : '',