analytics/lib/plausible_web
Vini Brasil 48b02c1396
Avoid suggesting plan for trials switching to enterprise plans (#3282)
This commit fixes a bug where the SendTrialNotifications job tried to
suggest a plan for users switching to enterprise plans, resulting in the
exception below:

```
UndefinedFunctionError: function :enterprise.volume/0 is undefined (module :enterprise is not available)
  Module "enterprise", in :enterprise.volume/0
  File "lib/plausible_web/templates/email/trial_upgrade_email.html.eex", line 5, in PlausibleWeb.EmailView."trial_upgrade_email.html"/1
  File "lib/phoenix_view.ex", line 381, in Phoenix.View.render_within/3
  File "lib/phoenix_view.ex", line 557, in Phoenix.View.render_to_iodata/3
  File "lib/phoenix_view.ex", line 564, in Phoenix.View.render_to_string/3
  File "lib/bamboo_phoenix.ex", line 291, in Bamboo.Phoenix.render_text_or_html_email/1
  File "lib/workers/send_trial_notifications.ex", line 67, in Plausible.Workers.SendTrialNotifications.send_today_reminder/1
  File "lib/workers/send_trial_notifications.ex", line 36, in anonymous fn/2 in Plausible.Workers.SendTrialNotifications.perform/1
```
2023-08-21 09:01:50 -03:00
..
components Create props settings page (#3191) 2023-07-27 15:46:32 +01:00
controllers Refactor Plausible.Billing.Plans module (#3268) 2023-08-16 13:38:38 -03:00
live Hide creatable option when input matches suggestion (#3217) 2023-08-01 19:41:56 +01:00
mjml Fix weekly/monthly report e-mails (MJML) (#3150) 2023-07-17 16:59:01 +02:00
plugs Reconfigure session cookie (#3274) 2023-08-21 11:47:11 +02:00
templates Avoid suggesting plan for trials switching to enterprise plans (#3282) 2023-08-21 09:01:50 -03:00
views Some fixes to the Custom Props feature (#3241) 2023-08-07 18:11:14 +01:00
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 2022-10-17 08:16:59 -03:00
email.ex Refactor Plausible.Billing.Plans module (#3249) 2023-08-09 14:33:59 -03:00
endpoint.ex Reconfigure session cookie (#3274) 2023-08-21 11:47:11 +02:00
live_socket.ex Reconfigure session cookie (#3274) 2023-08-21 11:47:11 +02:00
refinspector.ex [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
remote_ip.ex Parse bunny header 2022-01-15 08:57:25 -06:00
router.ex Create props settings page (#3191) 2023-07-27 15:46:32 +01:00