diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 03:10:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-07 03:10:33 +0300 |
commit | 611897b987d439b0d736eb87415b8ca32bdaa282 (patch) | |
tree | 7d74c5c722165cc62d1b6974bd81886895dedfe2 /app/services/vs_code | |
parent | a303eb5d329ee4fee3ad76b9c2e32ce1d6d4a13b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/vs_code')
-rw-r--r-- | app/services/vs_code/settings/delete_service.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/services/vs_code/settings/delete_service.rb b/app/services/vs_code/settings/delete_service.rb new file mode 100644 index 00000000000..a2edd734eb2 --- /dev/null +++ b/app/services/vs_code/settings/delete_service.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module VsCode + module Settings + class DeleteService + def initialize(current_user:) + @current_user = current_user + end + + def execute + VsCodeSetting.by_user(current_user).delete_all + + ServiceResponse.success + end + + private + + attr_reader :current_user + end + end +end |