Hello,
My dataset are completely similar between live and sandbox
I have an issue with below code which is working well in test:
For my test I hardcoded the variable userEmail
The below filter is working well in test and not in prod… Any idea what’s going on ?
Thanks for your help
Pym
l et userEmail;
userEmail = “XXXX”;
export function packageDataset_ready() {
wixData.query(“clientDataset”)
.eq(“userStatus”, “active”)
.contains(“title”, userEmail)
.find()
.then((results) => {
let items = results.items;
let company = items[0].userCompany;
$w(“#packageDataset”).setFilter(wixData.filter() // does not filter anything in prod…
.contains(“userCompany”, company)
)
.then(() => {
console.log(“package Dataset is now filtered”);
})
.catch((err) => {
console.log(err);
});
});
}