mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 00:03:23 +00:00
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:
@@ -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",
|
||||||
|
|||||||
@@ -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) : '',
|
||||||
|
|||||||
Reference in New Issue
Block a user