From 35853b0b5426dd33852f9af98c288ddc7a1541d6 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 13 Feb 2025 02:42:56 -0800 Subject: [PATCH] Users#info endpoint uses username instead of ID --- 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