Merge pull request #68 from xtr-dev/dev

Fix filterOptions ObjectId casting error and bump version to 0.4.20
This commit is contained in:
Bas
2025-10-07 22:04:22 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@xtr-dev/payload-mailing", "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", "description": "Template-based email system with scheduling and job processing for PayloadCMS",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",

View File

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