diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-01 03:14:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-01 03:14:06 +0300 |
commit | cc2623bcc3040a8b9c9a302e3f660c0ca65a7699 (patch) | |
tree | 9c7dad386960a919fbe9b954854f34a41ee4242d /app/services/resource_events | |
parent | f2ed38a6b50ee59ce280a3e7d5125b3a35c5f17e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/resource_events')
-rw-r--r-- | app/services/resource_events/change_state_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/resource_events/change_state_service.rb b/app/services/resource_events/change_state_service.rb index d68b86a1513..a396f7a1907 100644 --- a/app/services/resource_events/change_state_service.rb +++ b/app/services/resource_events/change_state_service.rb @@ -14,7 +14,7 @@ module ResourceEvents ResourceStateEvent.create( user: user, - resource.class.underscore => resource, + resource.noteable_target_type_name => resource, source_commit: commit_id_of(mentionable_source), source_merge_request_id: merge_request_id_of(mentionable_source), state: ResourceStateEvent.states[state], |