Browse Source

Fix incorrect send_at time in installer's sample campaign

Kailash Nadh 5 years ago
parent
commit
a0d9a4771a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      install.go

+ 1 - 2
install.go

@@ -113,8 +113,7 @@ func install(db *sqlx.DB, fs stuffbin.FileSystem, prompt bool) {
 	}
 	}
 
 
 	// Sample campaign.
 	// 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()),
 	if _, err := q.CreateCampaign.Exec(uuid.Must(uuid.NewV4()),
 		models.CampaignTypeRegular,
 		models.CampaignTypeRegular,
 		"Test campaign",
 		"Test campaign",