Skip to content

test(db-mongodb): unit test assertion for relationship sanitization inside blockReferences - #11195

Merged
r1tsuu merged 1 commit into
mainfrom
test/add-unit-test-mongo
Feb 16, 2025
Merged

r1tsuu merged 1 commit into
mainfrom
test/add-unit-test-mongo

Conversation

@r1tsuu

@r1tsuu r1tsuu commented Feb 15, 2025

Copy link
Copy Markdown
Member

This PR adds a new unit test assertion to existing https://github.com/payloadcms/payload/blob/main/packages/db-mongodb/src/utilities/sanitizeRelationshipIDs.spec.ts that ensures relationships are sanitized to ObjectIDs correctly when saved to the database for relationships inside the new blockReferences #10905

@r1tsuu
r1tsuu merged commit 2ae670e into main Feb 16, 2025
@r1tsuu
r1tsuu deleted the test/add-unit-test-mongo branch February 16, 2025 12:08
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.24.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant