Skip to content

Commit

Permalink
Use update! so we throw errors if de-publishing a study fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
machinehum committed Jan 8, 2024
1 parent 6e9a639 commit f19beea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connectors/ctgov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def stray_trials(nct_ids = nil)

def cleanup_stray_trials(nct_ids = nil)
nct_ids ||= site_nct_ids
stray_trials(nct_ids).update(visible: false)
stray_trials(nct_ids).update!(visible: false)
end

def nct_ids_for_location(location, page_token = nil)
Expand Down

0 comments on commit f19beea

Please sign in to comment.