Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1021 from cocoa-mhlw/fix/tek_boundary_value
Browse files Browse the repository at this point in the history
fix boundary value check for tek
  • Loading branch information
cocoa-dev006 authored Aug 22, 2022
2 parents 6b01944 + d9a3351 commit d51384d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task<TemporaryExposureKeyModel[]> GetNextAsync()
_logger.LogInformation($"start {nameof(GetNextAsync)}");
var oldest = (int)new DateTimeOffset(DateTime.UtcNow.AddDays(Constants.OutOfDateDays).Date.Ticks, TimeSpan.Zero).ToUnixTimeSeconds() / 600;
var query = _db.TemporaryExposureKey.GetItemLinqQueryable<TemporaryExposureKeyModel>(true)
.Where(tek => tek.RollingStartIntervalNumber > oldest)
.Where(tek => tek.RollingStartIntervalNumber >= oldest)
.Where(tek => !tek.Exported)
.ToFeedIterator();
var e = Enumerable.Empty<TemporaryExposureKeyModel>();
Expand Down

0 comments on commit d51384d

Please sign in to comment.