A platform for community discussion. Free, open, simple.
FEATURE: adds list#(unread|new) to user api key routes (#6494)
Joffrey JAFFEUXf6eff38c0e06
diff --git a/app/models/user_api_key.rb b/app/models/user_api_key.rbindex 13eddc9274f..5ed0d47b4d5 100644--- a/app/models/user_api_key.rb+++ b/app/models/user_api_key.rb@@ -6,7 +6,12 @@ class UserApiKey < ActiveRecord::Basemessage_bus: [[:post, 'message_bus']],push: nil,notifications: [[:post, 'message_bus'], [:get, 'notifications#index'], [:put, 'notifications#mark_read']],- session_info: [[:get, 'session#current'], [:get, 'users#topic_tracking_state']]+ session_info: [+ [:get, 'session#current'],+ [:get, 'users#topic_tracking_state'],+ [:get, 'list#unread'],+ [:get, 'list#new']+ ]}belongs_to :user