Browse Source

Fix optin e-mails on subscriber addition to single option lists

Kailash Nadh 5 năm trước cách đây
mục cha
commit
f06d6b360d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      subscribers.go

+ 1 - 1
subscribers.go

@@ -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
 	}