Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 14:42:01 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 14:42:01 +0400
commit285926918b95f1d771bf4e9c84972d4e55b41ea9 (patch)
treef49cb42a094fbe5e3de08c549349fd99cb567465 /app/finders
parent7ec5ff4dbae71d147f413da5cea64116e7eb305d (diff)
Serialize last_fetched_at as a string with seconds
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/notes_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb
index 38d78f3a2d5..0b9affb716c 100644
--- a/app/finders/notes_finder.rb
+++ b/app/finders/notes_finder.rb
@@ -4,7 +4,7 @@ class NotesFinder
def execute(project, current_user, params)
target_type = params[:target_type]
target_id = params[:target_id]
- last_fetched_at = params.fetch(:last_fetched_at)
+ last_fetched_at = Time.at(params.fetch(:last_fetched_at).to_i)
notes = case target_type
when "commit"