build this

This commit is contained in:
Seth Call 2026-01-22 22:36:22 -06:00
parent bdeecc76c6
commit f1992eaa78
1 changed files with 7 additions and 8 deletions

View File

@ -350,15 +350,14 @@ module JamRuby
0.00 0.00
end end
if monthly_cost > 0 ltv = monthly_cost * 12
ltv = monthly_cost * 12 begin
begin puts "Sending CAPI Subscribe event #{current_user.email}, #{monthly_cost}, #{ltv}"
puts "Sending CAPI Subscribe event #{current_user.email}, #{monthly_cost}, #{ltv}" CapiTransmitter.send_event('Subscribe', current_user, { value: monthly_cost.to_s, currency: 'USD', predicted_ltv: ltv.to_s })
CapiTransmitter.send_event('Subscribe', current_user, { value: monthly_cost.to_s, currency: 'USD', predicted_ltv: ltv.to_s }) rescue => e
rescue => e puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
end
end end
rescue => e rescue => e
puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}" puts "Error sending CAPI Subscribe event #{current_user.email}, #{e.message}"
end end