diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-01 18:09:09 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-01 18:09:09 -0500 |
| commit | 20665b023c5dcf13c01b692711568393cb1cdb61 (patch) | |
| tree | 14922c230e70628e926703a1783227fe3d514833 /Omni/Jr | |
| parent | 26e7860347b1efb74a863ca90fad2ac9340a10f1 (diff) | |
Fix Recent Activity duplicating tasks on refresh
Changed taskToUnixTs from round to ceiling to prevent sub-second
timing issues where a task updated at e.g. 10:00:00.3 would round
down to 10:00:00, causing the next poll with since=10:00:00 to
include it again.
Task-Id: t-221
Diffstat (limited to 'Omni/Jr')
| -rw-r--r-- | Omni/Jr/Web.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Jr/Web.hs b/Omni/Jr/Web.hs index 6a2d826..2a10cb5 100644 --- a/Omni/Jr/Web.hs +++ b/Omni/Jr/Web.hs @@ -3093,7 +3093,7 @@ server = Just sid -> liftIO (streamAgentEvents tid sid) taskToUnixTs :: TaskCore.Task -> Int -taskToUnixTs t = round (utcTimeToPOSIXSeconds (TaskCore.taskUpdatedAt t)) +taskToUnixTs t = ceiling (utcTimeToPOSIXSeconds (TaskCore.taskUpdatedAt t)) getReviewInfo :: Text -> IO ReviewInfo getReviewInfo tid = do |
