Skip to content

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

Fix incorrect send_at time in installer's sample campaign

Kailash Nadha0d9a4771ada
diff --git a/install.go b/install.go
index b4518273..b5731e20 100644
--- a/install.go
+++ b/install.go
@@ -113,8 +113,7 @@ func install(db *sqlx.DB, fs stuffbin.FileSystem, prompt bool) {
}
// Sample campaign.
- sendAt := time.Now()
- sendAt.Add(time.Minute * 43200)
+ sendAt := time.Now().Add(time.Hour * 24)
if _, err := q.CreateCampaign.Exec(uuid.Must(uuid.NewV4()),
models.CampaignTypeRegular,
"Test campaign",