Commit 0de95e60 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch 'fj-avoid-loading-blob-data-update-service' into 'master'

Avoid loading blob data in snippet update service

See merge request gitlab-org/gitlab!30075
parents 6df27e86 ca41eb1d
...@@ -98,7 +98,7 @@ module Snippets ...@@ -98,7 +98,7 @@ module Snippets
end end
def snippet_files(snippet) def snippet_files(snippet)
[{ previous_path: snippet.blobs.first&.path, [{ previous_path: snippet.file_name_on_repo,
file_path: params[:file_name], file_path: params[:file_name],
content: params[:content] }] content: params[:content] }]
end end
......
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