summaryrefslogtreecommitdiff
path: root/app/graphql
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-09 21:09:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-09 21:09:12 +0000
commitd183d2d76bcc25f983c0836805c712af096bcc2f (patch)
tree982987f91e1cf268dbad55e51c4ea57292abbbd6 /app/graphql
parent453634293e24164ffaa5cd708e47a1cebc07bcd3 (diff)
downloadgitlab-ce-d183d2d76bcc25f983c0836805c712af096bcc2f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql')
-rw-r--r--app/graphql/subscriptions/notes/created.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/graphql/subscriptions/notes/created.rb b/app/graphql/subscriptions/notes/created.rb
index 873280286f7..07b7b308163 100644
--- a/app/graphql/subscriptions/notes/created.rb
+++ b/app/graphql/subscriptions/notes/created.rb
@@ -4,6 +4,17 @@ module Subscriptions
module Notes
class Created < Base
payload_type ::Types::Notes::NoteType
+
+ def update(*args)
+ case object
+ when ResourceEvent
+ object.work_item_synthetic_system_note
+ when Array
+ object.first.work_item_synthetic_system_note(events: object)
+ else
+ object
+ end
+ end
end
end
end