Set defualt value of AWS_REGION
This commit is contained in:
parent
294a4eb054
commit
d3439db85b
3 changed files with 2 additions and 5 deletions
|
|
@ -93,9 +93,6 @@ func Send_email(recipient string, subject string, htmlBody string, textBody stri
|
|||
aws_ses_secret := db.Get_setting("AWS_SES_SECRET")
|
||||
sender := db.Get_setting("AWS_SES_EMAIL_FROM")
|
||||
region := db.Get_setting("AWS_REGION")
|
||||
if region == "" {
|
||||
region = "us-east-1"
|
||||
}
|
||||
|
||||
sess, err := session.NewSession(&aws.Config{
|
||||
Region: aws.String(region),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue