From a78119b9cae23011288df3c0a9a7eb2ac3b6851c Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 23 Jun 2022 17:51:45 +0800 Subject: [PATCH] fix time range checking --- pkg/service/sync_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/sync_task.go b/pkg/service/sync_task.go index 80b421208..3ffc4694c 100644 --- a/pkg/service/sync_task.go +++ b/pkg/service/sync_task.go @@ -119,7 +119,7 @@ func (sel SyncTask) execute(ctx context.Context, db *sqlx.DB, startTime time.Tim } tt := sel.Time(obj) - if tt.Before(startTime) || tt.Equal(endTime) || tt.After(endTime) { + if tt.Before(startTime) || tt.After(endTime) { continue }