Skip to content

Commit

Permalink
Fix optin e-mails on subscriber addition to single option lists
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed May 23, 2020
1 parent bfe31b7 commit f06d6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ func sendOptinConfirmation(sub models.Subscriber, listIDs []int64, app *App) err
// Fetch double opt-in lists from the given list IDs.
// Get the list of subscription lists where the subscriber hasn't confirmed.
if err := app.queries.GetSubscriberLists.Select(&lists, sub.ID, nil,
pq.Int64Array(listIDs), nil, models.SubscriptionStatusUnconfirmed, nil); err != nil {
pq.Int64Array(listIDs), nil, models.SubscriptionStatusUnconfirmed, models.ListOptinDouble); err != nil {
app.log.Printf("error fetching lists for opt-in: %s", pqErrMsg(err))
return err
}
Expand Down

0 comments on commit f06d6b3

Please sign in to comment.