Avoid loading blob data in snippet update service

parent 9363545a
...@@ -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