Skip to content

Commit

Permalink
Convert prop from function
Browse files Browse the repository at this point in the history
  • Loading branch information
emre committed Apr 2, 2020
1 parent 7ee2019 commit 06db397
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firebase/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local predefined = import 'predefined.jsonnet';
[
{ name: 'last_deep_link_referrer', type: 'string', value_type: 'string_value', prop_db: 'last_deep_link_referrer', description: 'Last deep-link referrer value (2K-character limit)' },
],
get_event_properties()::
event_properties:
if std.extVar('event_properties') != null then std.extVar('event_properties') else
std.flattenArrays(std.map(function(event_type) std.map(function(prop)
{ event_name: event_type, event_db: event_type, name: prop.name, prop_db: prop.prop_db, type: prop.type, value_type: prop.value_type },
Expand Down
2 changes: 1 addition & 1 deletion firebase/custom_events.models.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local common = import 'common.libsonnet';
local predefined = import 'predefined.jsonnet';


local all_event_props = common.get_event_properties();
local all_event_props = common.event_properties;
local unique_events = std.uniq(std.sort(std.map(function(attr) attr.event_name, all_event_props)));

local user_props = common.get_user_properties();
Expand Down
2 changes: 1 addition & 1 deletion firebase/in_app_purchase_distribution.models.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local installRevenue = std.extVar('installRevenue');
local predefined = import 'predefined.jsonnet';

local user_props = common.get_user_properties();
local current_event_props = std.filter(function(p) p.event_name == 'in_app_purchase', common.get_event_properties());
local current_event_props = std.filter(function(p) p.event_name == 'in_app_purchase', common.event_properties);
local target = std.extVar('schema');

if installRevenue then [
Expand Down

0 comments on commit 06db397

Please sign in to comment.