Avoid loading blob data in snippet update service

parent 9363545a
......@@ -98,7 +98,7 @@ module Snippets
end
def snippet_files(snippet)
[{ previous_path: snippet.blobs.first&.path,
[{ previous_path: snippet.file_name_on_repo,
file_path: params[:file_name],
content: params[:content] }]
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