try with bug snag

This commit is contained in:
Seth Call 2021-01-01 15:33:34 -06:00
parent 57c3217768
commit 339d63f374
8 changed files with 35 additions and 23 deletions

View File

@ -158,4 +158,6 @@ CREATE INDEX recorded_videos_user_id_idx ON recorded_videos USING btree (user_id
CREATE INDEX music_sessions_user_id_idx ON music_sessions USING btree (user_id);
ALTER TABLE users ADD COLUMN used_current_month INT;
ALTER TABLE users ADD COLUMN used_month_play_time INT;
ALTER TABLE users ADD COLUMN used_month_play_time INT;
ALTER TABLE bands ADD COLUMN school_id INT;

View File

@ -949,7 +949,7 @@ module JamRuby
music_session_user_history.end_history
# then update any users that need their user progress updated
if music_session_user_history.duration_minutes > 15 && music_session_user_history.max_concurrent_connections >= 3
if music_session_user_history.duration_minutes > 15 && music_session_user_history.max_concurrent_connections.to_i >= 3
music_session_user_history.user.update_progression_field(:first_real_music_session_at)
end
end

View File

@ -19,7 +19,13 @@ class ClientsController < ApplicationController
return
end
@is_guitar_center = current_user && current_user.is_guitar_center?
if current_user
@is_guitar_center = false #current_user.is_guitar_center?
gon.user_id = current_user.id
gon.user_email = current_user.email
gon.user_name = current_user.name
end
@in_client_page = true
@minimal_curtain = Rails.application.config.minimal_curtain
gon.recurly_tax_estimate_jam_track_plan = Rails.application.config.recurly_tax_estimate_jam_track_plan

View File

@ -8,6 +8,7 @@
<![endif]-->
<!--<link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700' rel='stylesheet' type='text/css'>-->
<%= stylesheet_link_tag "client/client", media: "all" %>
<script src="//d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"></script>
<%= include_gon %>
<!--<% if Rails.env.test? %>
<%= javascript_include_tag "sinon" %>

View File

@ -197,8 +197,8 @@ if defined?(Bundler)
# allow hot-key to switch between native and normal client
config.allow_force_native_client = true
config.bugsnag_key = "4289fc981c8ce3eb0969003c4f498b01"
config.bugsnag_notify_release_stages = [] # add 'development' if you want to test a bugsnag feature locally
config.bugsnag_key = "fa0e229f687bcb2c8711fcb80223744e"
config.bugsnag_notify_release_stages = ["production"] # add 'development' if you want to test a bugsnag feature locally
config.recurly_webhook_user = 'monkeytoesspeartoss'
config.recurly_webhook_pass = 'frizzyfloppymushface'

View File

@ -30,3 +30,4 @@ Gon.global.subscription_codes = Rails.application.config.subscription_codes
Gon.global.braintree_token = Rails.application.config.braintree_token
Gon.global.paypal_admin_only = Rails.application.config.paypal_admin_only
Gon.global.env = Rails.env
Gon.global.version = ::JamWeb::VERSION

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long