diff options
Diffstat (limited to 'app/services/notes/destroy_service.rb')
-rw-r--r-- | app/services/notes/destroy_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/notes/destroy_service.rb b/app/services/notes/destroy_service.rb index b819bd17039..fb78420d324 100644 --- a/app/services/notes/destroy_service.rb +++ b/app/services/notes/destroy_service.rb @@ -1,7 +1,9 @@ module Notes class DestroyService < BaseService def execute(note) - note.destroy + TodoService.new.destroy_target(note) do |note| + note.destroy + end end end end |