From 36efb1b7bb447730b7cb0ea826025e4427b2cffa Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Mon, 23 Dec 2019 17:20:39 -0600 Subject: [PATCH] Show count of users followed from API (#5229) [deploy] --- app/controllers/api/v0/follows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v0/follows_controller.rb b/app/controllers/api/v0/follows_controller.rb index 03b9c1070..25e0233f9 100644 --- a/app/controllers/api/v0/follows_controller.rb +++ b/app/controllers/api/v0/follows_controller.rb @@ -8,7 +8,7 @@ module Api user_ids.each do |user_id| Users::FollowJob.perform_later(current_user.id, user_id, "User") end - render json: { outcome: "followed 50 users" } + render json: { outcome: "followed #{user_ids.count} users" } end end end