Browse Source

Fix incorrect send_at time in installer's sample campaign

Kailash Nadh 5 năm trước cách đây
mục cha
commit
a0d9a4771a
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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.
-	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",