From 60f153a1692629aafb3b2aa14c54f8ea3e4ffd62 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 13 Feb 2025 02:43:16 -0800 Subject: [PATCH] Users#info endpoint uses username instead of ID (#180) --- app/controllers/api/v1/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index bec71eb..639615f 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -6,7 +6,7 @@ module Api class ForbiddenError < StandardError; end before_action :set, except: %w[create check_email check_username] - before_action :set_by_id, only: %w[info update] + before_action :set_by_id, only: %w[update] MAX_CHARACTERS = 5 MAX_SUMMONS = 8