summaryrefslogtreecommitdiff
path: root/app/services/chat_names
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-02-22 18:34:04 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2018-02-23 14:37:53 +0100
commit57719d34d3fcc15f39354b0e9dc1da41bbe5d1a8 (patch)
tree255d9a3df371793748c64792a715102dca98512c /app/services/chat_names
parentc679fa163148601e77803f45cf5dea8e1b3feb0a (diff)
downloadgitlab-ce-57719d34d3fcc15f39354b0e9dc1da41bbe5d1a8.tar.gz
Expose ChatName objects to slash commandsslash-commands-changes-for-chatops
Instead of only exposing a User to slash commands we now also expose the ChatName object that the User object is retrieved from. This is necessary for GitLab Chatops as we need for example the user ID of the chat user.
Diffstat (limited to 'app/services/chat_names')
-rw-r--r--app/services/chat_names/find_user_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/chat_names/find_user_service.rb b/app/services/chat_names/find_user_service.rb
index 4f5c5567b42..d458b814183 100644
--- a/app/services/chat_names/find_user_service.rb
+++ b/app/services/chat_names/find_user_service.rb
@@ -9,8 +9,8 @@ module ChatNames
chat_name = find_chat_name
return unless chat_name
- chat_name.touch(:last_used_at)
- chat_name.user
+ chat_name.update_last_used_at
+ chat_name
end
private