Commit 7da180f3 authored by Alex Kalderimis's avatar Alex Kalderimis

Tidyier argument handling

parent ae532fdf
......@@ -27,11 +27,11 @@ module Mutations
description: 'Actions to perform over the snippet repository and blobs',
required: false
def resolve(args)
snippet = authorized_find!(id: args.delete(:id))
def resolve(id:, **args)
snippet = authorized_find!(id: id)
result = ::Snippets::UpdateService.new(snippet.project,
context[:current_user],
current_user,
update_params(args)).execute(snippet)
snippet = result.payload[:snippet]
......
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