getting TypeError: Failed to fetch when using emailUser
roundRobin is created AND published.
was working then sttopped
here is my code
any ideas
export function mailMe_click(event) {
let user = wixUsers.currentUser;
let userId = user.id;
console.log(userId)
wixUsers.emailUser("roundRobin", userId, {
“variables”: {
“when”: $w(‘#when’).value,
“AT”: $w(‘#location’).value,
“gameSchedule”: $w(‘#table’).text
}
} )
.then( () => {
$w(‘#onitsWay’).text = “An email is on its way…”
$w(‘#onitsWay’).expand()
} )
. catch ( (err) => {
console.log(err)
//$w(‘#onitsWay’).text = err
//$w(‘#onitsWay’).expand()
} );
//})
}