Commit 9d08dddf authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Ensure all Serializers receive `current_user` instead `user`

parent 566ee145
......@@ -6,7 +6,7 @@ class Projects::DeploymentsController < Projects::ApplicationController
deployments = environment.deployments.reorder(created_at: :desc)
deployments = deployments.where('created_at > ?', params[:after].to_time) if params[:after]&.to_time
render json: { deployments: DeploymentSerializer.new(user: @current_user, project: project)
render json: { deployments: DeploymentSerializer.new(current_user: @current_user, project: project)
.represent_concise(deployments) }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment