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

feat(backend): allow ics invitation #78

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

madeindra
Copy link

Heya, folk!

Might worth to include an invitation file (ics) in the payment_success email.

This is just a draft of how I would do it, but it's not the best, so please just treat this as a suggestion, i'm not an expert :')

backend/main.go Fixed Show fixed Hide fixed
backend/main.go Outdated
@@ -408,13 +423,25 @@ func App() *cli.App {
SmtpPassword: config.Mailer.Password,
})

attachments := []Attachment{}
if (icsContent != nil){
attachments := append(attachments, Attachment{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The attachments variable is being override here.

backend/main.go Outdated
@@ -408,13 +423,25 @@ func App() *cli.App {
SmtpPassword: config.Mailer.Password,
})

attachments := []Attachment{}
if (icsContent != nil){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run go fmt ./... first, to make sure your code align with Go's formatting standards.

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