mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Fix mixpanel track on image upload
This commit is contained in:
parent
9b60c23ec3
commit
28b01532e4
@ -145,7 +145,7 @@ class ContentController < ApplicationController
|
||||
Mixpanel::Tracker.new(Rails.application.config.mixpanel_token).track(current_user.id, 'uploaded image', {
|
||||
'content_type': content_type,
|
||||
'image_size_kb': image_size_kb,
|
||||
'first five images': current_user.image_uploads <= 5
|
||||
'first five images': current_user.image_uploads.count <= 5
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user