|
186 | 186 | :subject "Thanks for submitting your profile for review!" |
187 | 187 | :body "We'll review your profile shortly. Once we make it live, you'll start receiving your daily cutie emails! 🍊"})) |
188 | 188 |
|
189 | | - (when (and updated-selections-rejections ; TODO: for now, we're only sending emails when the user updates their selections/rejections because it was getting too noisy |
190 | | - (= (util/get-env-var "ENVIRONMENT") |
191 | | - (:prod util/ENVIRONMENTS))) |
192 | | - (email/send-email {:to "hello@smallworld.kiwi" |
193 | | - :from-name "MeetCute logs" |
194 | | - :subject log-message |
195 | | - :body (str "<div style='line-height: 1.6em; font-family: Roboto Mono, monospace !important; margin: 24px 0'>" |
196 | | - "<b><u>Here's what's changed:</u></b><br><br>" |
197 | | - "OLD: <br><pre>" (with-out-str (pp/pprint old)) "</pre><br>" |
198 | | - "NEW: <br><pre>" (with-out-str (pp/pprint new)) "</pre><br>" |
199 | | - "NO CHANGE:<br><pre>" (with-out-str (pp/pprint no-change)) "</pre><br>" |
200 | | - "</div>")})) |
| 189 | + #_(when (and updated-selections-rejections ; TODO: for now, we're only sending emails when the user updates their selections/rejections because it was getting too noisy |
| 190 | + (= (util/get-env-var "ENVIRONMENT") |
| 191 | + (:prod util/ENVIRONMENTS))) |
| 192 | + (email/send-email {:to "hello@smallworld.kiwi" |
| 193 | + :from-name "MeetCute logs" |
| 194 | + :subject log-message |
| 195 | + :body (str "<div style='line-height: 1.6em; font-family: Roboto Mono, monospace !important; margin: 24px 0'>" |
| 196 | + "<b><u>Here's what's changed:</u></b><br><br>" |
| 197 | + "OLD: <br><pre>" (with-out-str (pp/pprint old)) "</pre><br>" |
| 198 | + "NEW: <br><pre>" (with-out-str (pp/pprint new)) "</pre><br>" |
| 199 | + "NO CHANGE:<br><pre>" (with-out-str (pp/pprint no-change)) "</pre><br>" |
| 200 | + "</div>")})) |
201 | 201 | (generate-string (airtable/kwdize new-bio)))))) |
202 | 202 |
|
203 | 203 | (defn index-of [e coll] (first (keep-indexed #(if (= e %2) |
|
0 commit comments