Skip to content
Snippets Groups Projects
Commit fc55f139 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

lint fix

parent af5013a1
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@
{:heading "We’d love your feedback."
:callToAction "It looks like Metabase wasn’t quite a match for you. Would you mind taking a fast 5 question survey to help the Metabase team understand why and make things better in the future?"
:link "http://www.metabase.com/feedback/this-thing-sucks"}
{:heading "We hope you've been enjoing Metabase."
{:heading "We hope you've been enjoying Metabase."
:callToAction "Would you mind taking a fast 6 question survey to tell us how it’s going?"
:link "http://www.metabase.com/feedback/best-analytics-evar"}))
message-body (stencil/render-file "metabase/email/follow_up_email" context)]
......
......@@ -38,12 +38,11 @@
(k/order :date_joined :ASC)
(k/limit 1))
first
:date_joined
.getTime)]
:date_joined)]
;; 2. we need to be 2+ weeks (14 days) from creation to send the follow up
(when (< (* 14 24 60 60 1000)
(- (System/currentTimeMillis) instance-created))
;; 3. we need access to email AND the instance must be opted into anonymous tracking
(- (System/currentTimeMillis) (.getTime ^java.sql.Timestamp instance-created)))
;; 3. we need access to email AND the instance must be opted into anonymous tracking
(when (and (email/email-configured?)
(let [tracking? (setting/get :anon-tracking-enabled)]
(or (nil? tracking?) (= "true" tracking?))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment