Set defualt value of AWS_REGION

This commit is contained in:
Sonoko Mizuki 2023-04-22 16:27:45 +09:00
parent 294a4eb054
commit d3439db85b
3 changed files with 2 additions and 5 deletions

View file

@ -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),