I have a button on a lightbox that on click writes to a database. It works in preview mode but not on the published site, is there anything i need to change in the database settings etc to allow this to work?
Code below
export function submitReviewButton_click(event) {
$w('#SubmitReviews').onAfterSave(async () => {
console.log("Submit reviews callback")
await updateStatistics($w('#ratingsInput').value,1);
wixWindow.lightbox.close();
});
$w('#SubmitReviews').save();
}