From 8bc503e9e67398099f269e33641ce5f176130667 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Mon, 18 May 2020 14:50:18 +0800 Subject: [PATCH] change follow watched --- app/controllers/watchers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 566941e5..7f6b2457 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -32,7 +32,7 @@ class WatchersController < ApplicationController if @target_type.downcase == "project" render_ok({watchers_count: @target.watchers_count, watched: true}) else - render_ok({ watched: false}) + render_ok({ watched: true}) end rescue Exception => e uid_logger_error(e.message)