diff options
Diffstat (limited to 'lib/api/v3/snippets.rb')
-rw-r--r-- | lib/api/v3/snippets.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/v3/snippets.rb b/lib/api/v3/snippets.rb index 126ec72248e..85613c8ed84 100644 --- a/lib/api/v3/snippets.rb +++ b/lib/api/v3/snippets.rb @@ -97,6 +97,7 @@ module API attrs = declared_params(include_missing: false) UpdateSnippetService.new(nil, current_user, snippet, attrs).execute + if snippet.persisted? present snippet, with: ::API::Entities::PersonalSnippet else |