mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
First pass at getting onboarding shown event from analytics
This commit is contained in:
parent
e95778c703
commit
f2c0bf5515
1 changed files with 10 additions and 1 deletions
|
@ -249,7 +249,16 @@ module.exports = ProjectController =
|
|||
else
|
||||
return cb(null, true)
|
||||
showAutoCompileOnboarding: (cb) ->
|
||||
return cb(null, true)
|
||||
cb = underscore.once(cb)
|
||||
if (!user_id?)
|
||||
return cb()
|
||||
AnalyticsManager.getLastOccurance user_id, "shown-autocompile-onboarding", (error, event) ->
|
||||
if error?
|
||||
return cb(null, false)
|
||||
else if event?
|
||||
return cb(null, false)
|
||||
else
|
||||
return cb(null, true)
|
||||
}, (err, results)->
|
||||
if err?
|
||||
logger.err err:err, "error getting details for project page"
|
||||
|
|
Loading…
Reference in a new issue