From f06d6b360d4afc2c93fa78a77f57f4af33a276e9 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 23 May 2020 12:54:25 +0530 Subject: [PATCH] Fix optin e-mails on subscriber addition to single option lists --- subscribers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subscribers.go b/subscribers.go index de02b65..1133112 100644 --- a/subscribers.go +++ b/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 }