调整nps用户调研接口,30天

This commit is contained in:
“xxq250” 2022-09-02 15:50:15 +08:00
parent c60e80da98
commit 4a6e94a98f
1 changed files with 1 additions and 2 deletions

View File

@ -27,5 +27,4 @@ json.(@user, :show_email, :show_department, :show_location, :show_super_descript
json.message_unread_total @message_unread_total
json.has_trace_user @user.trace_user.present?
json.is_new @user.login.present? && params[:login].to_s.include?("#{@user.login}")
# json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", (Time.now - 30.days).beginning_of_day ).blank?
json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", Time.now - 30.minutes ).blank?
json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", (Time.now - 30.days).beginning_of_day ).blank?