Hi, I need some help due to lack of ideas what I’m doing wrong.
I’m using a simple function from here https://www.wix.com/velo/reference/wix-members-backend/currentmember/getmember
using it with my backend module, here is the code
import { currentMember } from ‘wix-members-backend’ ;
export async function getContacts ( ) {
let options = {
fieldsets : [ ‘FULL’ ],
“suppressAuth” : true ,
“suppressHooks” : true
}
try {
const member = await currentMember . getMember ( options );
} catch ( error ) {
console . error ( error );
}
}
really simple code, just like in tutorial
Here is an Error Log
1 Like
line 31 it’s a catch section (with console.log)
capo
3
I’m having the same problem
Please if someone can look at this
SupressAuth should have been replaced by the → ELEVATE-FUNCTION as i can remember.
And old JSW-Backend-Files replaced by webMethod.
Already checked it out?
Maybe this post will help you out…
About webMethod…
1 Like