0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🐛 Fix test email member uuid (#12809)

refs: #12808

- we need to use the uuid, not the id, so that e.g. unsubscribe urls are set correctly
- this is only for test emails, but it's still important to be able to test things fully!
This commit is contained in:
Matthew Schmoyer 2021-06-24 02:42:15 -06:00 committed by GitHub
parent 0ef9a7e415
commit 7bac21d591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ const sendTestEmail = async (postModel, toEmails, apiVersion) => {
const member = await membersService.api.members.get({email});
if (member) {
return {
member_uuid: member.get('id'),
member_uuid: member.get('uuid'),
member_email: member.get('email'),
member_name: member.get('name')
};