Events now only have associations; when filters and narratives are needed fromevents, interpolate from evt.associations

This commit is contained in:
efarooqui
2020-09-10 22:39:29 -07:00
parent 2bc6affbf5
commit 57818dd971
4 changed files with 21 additions and 22 deletions

View File

@@ -84,11 +84,11 @@ export function validateDomain (domain, features) {
function validateArray (items, domainKey, schema) {
items.forEach(item => {
// NB: backwards compatibility with 'tags' for 'filters'
if (domainKey === 'events') {
if (!item.filters && !!item.tags) {
item.filters = item.tags
}
}
// if (domainKey === 'events') {
// if (!item.filters && !!item.tags) {
// item.filters = item.tags
// }
// }
validateArrayItem(item, domainKey, schema)
})
}