Skip to content

Commit

Permalink
Merge pull request #2 from DFE-Digital/update-schema
Browse files Browse the repository at this point in the history
Standardise event-schema.json
  • Loading branch information
duncanjbrown authored Apr 21, 2022
2 parents 987ab7b + 02dc49c commit 53efa7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions config/event-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@
"required": ["key", "value"]
}
]
},
"event_tags": {
"type": "array",
"items" : [ { "type": "string" } ]
}
},
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion lib/dfe/analytics/send_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def perform(events)
if DfE::Analytics.log_only?
Rails.logger.info('DfE::Analytics: ' + events.inspect)
else
DfE::Analytics.events_client.insert(events)
DfE::Analytics.events_client.insert(events, ignore_unknown: true)
end
end
end
Expand Down

0 comments on commit 53efa7b

Please sign in to comment.