Add support for more audience fields. (#4145)

* Add support for more audience fields.

* Only update audience when defined audience_id.
This commit is contained in:
Anthony Mosca
2017-09-12 11:36:21 +09:30
committed by Florent Vilmart
parent 9fbb5e29e8
commit 4dce3bd63c
6 changed files with 160 additions and 17 deletions

View File

@@ -113,12 +113,14 @@ const defaultColumns = Object.freeze({
},
_GlobalConfig: {
"objectId": {type: 'String'},
"params": {type: 'Object'}
"params": {type: 'Object'}
},
_Audience: {
"objectId": {type:'String'},
"name": {type:'String'},
"query": {type:'String'} //storing query as JSON string to prevent "Nested keys should not contain the '$' or '.' characters" error
"objectId": {type:'String'},
"name": {type:'String'},
"query": {type:'String'}, //storing query as JSON string to prevent "Nested keys should not contain the '$' or '.' characters" error
"lastUsed": {type:'Date'},
"timesUsed": {type:'Number'}
}
});