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 template creation API returning incorrect response
Kailash Nadh2587d67765cd
diff --git a/templates.go b/templates.goindex bcf3dd78..c0b24b90 100644--- a/templates.go+++ b/templates.go@@ -149,7 +149,7 @@ func handleCreateTemplate(c echo.Context) error {// Hand over to the GET handler to return the last insertion.c.SetParamNames("id")c.SetParamValues(fmt.Sprintf("%d", newID))- return c.JSON(http.StatusOK, handleGetLists(c))+ return handleGetTemplates(c)}// handleUpdateTemplate handles template modification.