fix time range checking

This commit is contained in:
c9s 2022-06-23 17:51:45 +08:00
parent 4556e501da
commit a78119b9ca
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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
}