Question:
import { members } from "wix-members.v2";
export const getMemberFunction = webMethod(
Permissions.SiteMember,
async (_id) => {
try {
const member = await elevatedgetMember(_id, {fieldsets: Set['FULL'] });
console.log("Member retrieved:", member);
return member;
} catch (error) {
console.error(error);
// Handle the error
}
},
);
Product:
Using Wix Studio
The property is called contact
, not contactDetails
When I log the entire response to the console there is no contact property.
And there’s a contactDetails
property?
Sorry, I have been switching back and forth between wix-members.v2 and some of the older Member libraries.
I have revised my question. Ultimatelty I would like to utilize getMember on wix-members.v2 however I cannot seem to get the contant propertry to return.
Do I have the options set properly?
If I use the following options:
let options={fieldsets: [ ‘FULL’ ]}
It appear to be the incorrect type HOWEVER it will execute and it does return a Contact property but the address, phone and custom properties are NOT populated.