Commit b721c9d0 authored by Nick Thomas's avatar Nick Thomas

Fix notes_data so the initial value is in microseconds

Without this change, we always start polling for updated notes far back
in time, as the value is interpreted as microseconds, instead of
seconds, now.
parent e473ac00
......@@ -181,7 +181,7 @@ module NotesHelper
reopenPath: reopen_issuable_path(issuable),
notesPath: notes_url,
prerenderedNotesCount: issuable.capped_notes_count(MAX_PRERENDERED_NOTES),
lastFetchedAt: Time.now.to_i
lastFetchedAt: Time.now.to_i * ::Gitlab::UpdatedNotesPaginator::MICROSECOND
}
if issuable.is_a?(MergeRequest)
......
---
title: Use the correct start time when polling for updated notes
merge_request: 42124
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment