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:
Diffstat (limited to 'app/serializers/lfs_file_lock_entity.rb')
-rw-r--r--app/serializers/lfs_file_lock_entity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/lfs_file_lock_entity.rb b/app/serializers/lfs_file_lock_entity.rb
index 7961c4e666b..dd109cba015 100644
--- a/app/serializers/lfs_file_lock_entity.rb
+++ b/app/serializers/lfs_file_lock_entity.rb
@@ -5,9 +5,9 @@ class LfsFileLockEntity < Grape::Entity
expose :path
expose(:id) { |entity| entity.id.to_s }
- expose(:created_at, as: :locked_at) { |entity| entity.created_at.to_s(:iso8601) }
+ expose(:created_at, as: :locked_at) { |entity| entity.created_at.to_fs(:iso8601) }
expose :owner do
- expose(:name) { |entity| entity.user&.name }
+ expose(:name) { |entity| entity.user&.username }
end
end