Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to configure when subscription termination alert is sent by setting env var #1575

Merged

Conversation

edwardmp
Copy link
Contributor

@edwardmp edwardmp commented Dec 28, 2023

Context

It's nice to make this configurable. e.g. in my case I want it sent 1 day before ending as well.

Description

By setting env var LAGO_SUBSCRIPTION_TERMINATION_ALERT_SENT_AT_DAYS it can be overridden from the defaults.

E.g. LAGO_SUBSCRIPTION_TERMINATION_ALERT_SENT_AT_DAYS to 1,30 will cause it be sent 1 and 30 days in advance.

edwardmp and others added 2 commits January 5, 2024 14:05
Co-authored-by: Vincent Pochet <vincent@getlago.com>
Co-authored-by: Vincent Pochet <vincent@getlago.com>
Co-authored-by: Vincent Pochet <vincent@getlago.com>
@vincent-pochet
Copy link
Collaborator

Thank you @edwardmp for this pull request (and for applying the comments very quickly 😉 ).
It looks great!
It will be merged today and will be part of the next release, probably next week.

@edwardmp
Copy link
Contributor Author

edwardmp commented Jan 5, 2024

@vincent-pochet awesome! Thanks for reviewing. Pleasure doing business ;)

@vincent-pochet vincent-pochet merged commit b8eb518 into getlago:main Jan 5, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants