Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Detlef committed May 21, 2024
1 parent aa5971e commit 7d3b19c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/seeds/demo_ama_aod_hearing_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def random_demo_file_number_and_participant_id
end

def find_or_create_demo_seed_judge(judge_ccs_id)
unless judge_ccs_id.empty?
unless judge_ccs_id.nil?
User.find_by_css_id(judge_ccs_id) ||
create(:user, :judge, :with_vacols_judge_record, css_id: judge_ccs_id, full_name: "Demo Judge " + judge_ccs_id)
else
Expand Down
2 changes: 1 addition & 1 deletion db/seeds/demo_ama_non_aod_hearing_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def random_demo_file_number_and_participant_id
end

def find_or_create_demo_seed_judge(judge_ccs_id)
unless judge_ccs_id.empty?
unless judge_ccs_id.nil?
User.find_by_css_id(judge_ccs_id) ||
create(:user, :judge, :with_vacols_judge_record, css_id: judge_ccs_id, full_name: "Demo Judge " + judge_ccs_id)
else
Expand Down
4 changes: 3 additions & 1 deletion db/seeds/demo_direct_reviews_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def create_ama_direct_review
:appeal,
:direct_review_docket,
:ready_for_distribution,
:tied_to_judge,
tied_judge: @associated_judge,
associated_judge: @associated_judge,
veteran: create_demo_veteran_for_docket,
receipt_date: @days_ago
Expand All @@ -42,7 +44,7 @@ def random_demo_file_number_and_participant_id
end

def find_or_create_demo_seed_judge(judge_ccs_id)
unless judge_ccs_id.empty?
unless judge_ccs_id.nil?
User.find_by_css_id(judge_ccs_id) ||
create(:user, :judge, :with_vacols_judge_record, css_id: judge_ccs_id, full_name: "Demo Judge " + judge_ccs_id)
else
Expand Down
2 changes: 1 addition & 1 deletion db/seeds/demo_legacy_cases_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def random_demo_file_number_and_participant_id
end

def find_or_create_demo_seed_judge(judge_ccs_id)
unless judge_ccs_id.empty?
unless judge_ccs_id.nil?
User.find_by_css_id(judge_ccs_id) ||
create(:user, :judge, :with_vacols_judge_record, css_id: judge_ccs_id, full_name: "Demo Judge " + judge_ccs_id)
else
Expand Down

0 comments on commit 7d3b19c

Please sign in to comment.