Skip to content

Commit

Permalink
feat: fix first number missing bug in AmazonSNSClient.SendMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Dec 6, 2023
1 parent b7c6f74 commit f5e94f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (a *AmazonSNSClient) SendMessage(param map[string]string, targetPhoneNumber
}
}

for i := 1; i < len(targetPhoneNumber); i++ {
for i := 0; i < len(targetPhoneNumber); i++ {
_, err := a.svc.Publish(&sns.PublishInput{
Message: &a.template,
PhoneNumber: &targetPhoneNumber[i],
Expand Down

0 comments on commit f5e94f9

Please sign in to comment.