Skip to content

Commit d900fe5

Browse files
committed
godev/cmd/worker: swap start and end date passed to /copy
The start date should be earlier than the end date. Change-Id: I229fe56b2d9328c24043ae9bdc38339514092ef4 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/600576 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 61569f5 commit d900fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godev/cmd/worker/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func handleTasks(cfg *config.Config) content.HandlerFunc {
133133

134134
// Copy the past 20 days uploaded reports from prod to dev gcs bucket.
135135
if cfg.Env != "prod" {
136-
url := cfg.WorkerURL + "/copy/?start=" + now.Format(time.DateOnly) + "&end=" + now.AddDate(0, 0, -1*20).Format(time.DateOnly)
136+
url := cfg.WorkerURL + "/copy/?start=" + now.AddDate(0, 0, -1*20).Format(time.DateOnly) + "&end=" + now.Format(time.DateOnly)
137137
if _, err := createHTTPTask(cfg, url); err != nil {
138138
return err
139139
}

0 commit comments

Comments
 (0)