Update presets

This commit is contained in:
Robin van der Linde 2023-12-01 00:05:57 +01:00
parent 834e4b5e02
commit 76874e6de8
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
7 changed files with 43 additions and 40 deletions

View file

@ -91,7 +91,7 @@ function run(file, protojson) {
if (e.countryWhiteList.length > 0) {
// This is a 'hideInAnswer', thus _reverse_ logic!
const countries = e.countryWhiteList.map(country => "_country!=" + country) //HideInAnswer if it is in the wrong country
json["hideInAnswer"] = {or: countries}
json["hideInAnswer"] = {and: countries} // Should be and, as we want to hide if it does not match any of the countries
} else if (e.countryBlackList.length > 0) {
const countries = e.countryBlackList.map(country => "_country=" + country) //HideInAnswer if it is in the wrong country
json["hideInAnswer"] = {or: countries}