Browse Source

lint fixes

pull/528/head
Dushan Despotovic 3 years ago
parent
commit
10507fa5a8
  1. 3
      app/controllers/case_logs_controller.rb
  2. 1
      spec/models/case_log_spec.rb

3
app/controllers/case_logs_controller.rb

@ -104,12 +104,11 @@ private
{
"owning_organisation_id" => current_user.organisation.id,
"managing_organisation_id" => current_user.organisation.id,
"created_by_id" => current_user.id
"created_by_id" => current_user.id,
}
end
def api_case_log_params
return {} unless params[:case_log]
permitted = params.require(:case_log).permit(CaseLog.editable_fields)

1
spec/models/case_log_spec.rb

@ -1852,7 +1852,6 @@ RSpec.describe CaseLog do
end
context "when filtering by user" do
before do
PaperTrail::Version.find_by(item_id: case_log_1.id, event: "create").update!(whodunnit: created_by_user.to_global_id.uri.to_s)
PaperTrail::Version.find_by(item_id: case_log_2.id, event: "create").update!(whodunnit: created_by_user.to_global_id.uri.to_s)

Loading…
Cancel
Save