DEV: remove user thread count route (#25385)

Removes a now redundant route for the user thread count.
This commit is contained in:
David Battersby
2024-01-24 10:32:34 +08:00
committed by GitHub
parent 9dfa31202e
commit 04d2ec45b4
4 changed files with 0 additions and 35 deletions

View File

@ -21,11 +21,4 @@ class Chat::Api::CurrentUserThreadsController < Chat::ApiController
on_model_not_found(:threads) { render json: success_json.merge(threads: []) }
end
end
def thread_count
with_service(::Chat::LookupUserThreads) do
on_success { render json: success_json.merge(thread_count: result.threads.size) }
on_model_not_found(:threads) { render json: success_json.merge(thread_count: 0) }
end
end
end