Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix bounces not being sorted by `type` field. Closes #2444.

Kailash Nadhb04fe6b6b986
diff --git a/internal/core/bounces.go b/internal/core/bounces.go
index 0e080020..4ba61d11 100644
--- a/internal/core/bounces.go
+++ b/internal/core/bounces.go
@@ -9,7 +9,7 @@ import (
"github.com/lib/pq"
)
-var bounceQuerySortFields = []string{"email", "campaign_name", "source", "created_at"}
+var bounceQuerySortFields = []string{"email", "campaign_name", "source", "created_at", "type"}
// QueryBounces retrieves paginated bounce entries based on the given params.
// It also returns the total number of bounce records in the DB.