export function getNotifications() {
return wixData.query("partnerBildirimleri")
.find()
.then((results) => {
let data = results.items;
return data
})
}
I see undefined every time when I’m on live site but when I test on backend it gives me return with right data why I see undefined in frontend with admin account
Update:
Now I’m getting an error to site monitoring without changing code
I’m sensing this too, based on what I’m seeing from others having issues.
Just a quick question though, have you checked the security settings on your collection to confirm that they are setup correctly.
In preview mode, you are usually accessing the collection as admin. From live mode, you are usually accessing as a user with no permissions.
Can you repeat the test after you change the permission on the collection to ‘Site Access’?
Just remember when you do this, an unauthenticated user can read and write to that collection. Just do this for a test to confirm. You will need to republish after making that permission change. You may want to set it back to your original setting after the test.
As well, to throw another curve, if you are working with a dataset (connector), it can have its own set of permissions, that may complement or interfere with the settings of the collection. They work together. If the dataset connector on the webpage is set to read only, but the collection is set to read/write, the dataset setting would take precedence because you are using the dataset.
problem solved by itself there was no problem with database too I’m creating a dashboard I didn’t created the database now so there was problem at Wix side