forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix template preview sending invalid view requests
- Loading branch information
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ import ( | |
"github.com/lib/pq" | ||
) | ||
|
||
const ( | ||
dummyUUID = "00000000-0000-0000-0000-000000000000" | ||
) | ||
|
||
// subQueryReq is a "catch all" struct for reading various | ||
// subscriber related requests. | ||
type subQueryReq struct { | ||
|
@@ -57,7 +61,7 @@ type subOptin struct { | |
var dummySubscriber = models.Subscriber{ | ||
Email: "[email protected]", | ||
Name: "Dummy Subscriber", | ||
UUID: "00000000-0000-0000-0000-000000000000", | ||
UUID: dummyUUID, | ||
} | ||
|
||
// handleGetSubscriber handles the retrieval of a single subscriber by ID. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,7 @@ func handlePreviewTemplate(c echo.Context) error { | |
|
||
// Compile the template. | ||
camp := models.Campaign{ | ||
UUID: "00000000-0000-0000-0000-000000000000", | ||
UUID: dummyUUID, | ||
Name: "Dummy Campaign", | ||
Subject: "Dummy Campaign Subject", | ||
FromEmail: "[email protected]", | ||
|