Welcome to mirror list, hosted at ThFree Co, Russian Federation.

namespace_visits_controller.rb « users « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4f536654caeb13f384df4236d050a4859087d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Users
  class NamespaceVisitsController < ApplicationController
    feature_category :navigation

    def create
      return head :bad_request unless params[:type].present? && params[:id].present?

      Users::TrackNamespaceVisitsWorker.perform_async(params[:type], params[:id], current_user.id, DateTime.now) # rubocop:disable CodeReuse/Worker
      head :ok
    end
  end
end