I am getting TypeError: invalid 'instanceof' operand KeyObject error while adding member using Ghost Admin API #20409
Labels
support request
[triage] A support request that belongs on the forum https://forum.ghost.org/c/help
Issue Summary
I am getting TypeError: invalid 'instanceof' operand KeyObject error while adding member using Ghost Admin API
Steps to Reproduce
export async function addMember(email) {
return await admin.members.add({"members":[{"email": email}]}, {send_email: true, email_type: 'subscribe'})
.then(response => console.log(response))
.catch(error => console.error(error))
}
Ghost Version
5.84.1
Node.js Version
18
How did you install Ghost?
Local
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: