High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix syntax error in GetBounce method (#2007)
Vaibhav Dixitc812caad1a3e
diff --git a/internal/core/bounces.go b/internal/core/bounces.goindex 51032023..ae2b7c47 100644--- a/internal/core/bounces.go+++ b/internal/core/bounces.go@@ -41,7 +41,7 @@ func (c *Core) QueryBounces(campID, subID int, source, orderBy, order string, of// GetBounce retrieves bounce entries based on the given params.func (c *Core) GetBounce(id int) (models.Bounce, error) {var out []models.Bounce- stmt := fmt.Sprintf(c.q.QueryBounces, "id", SortAsc)+ stmt := strings.ReplaceAll(c.q.QueryBounces, "%order%", "id "+SortAsc)if err := c.db.Select(&out, stmt, id, 0, 0, "", 0, 1); err != nil {c.log.Printf("error fetching bounces: %v", err)return models.Bounce{}, echo.NewHTTPError(http.StatusInternalServerError,