Skip to content

Commit 49fd3d0

Browse files
committed
Update status.rb
1 parent 88eb0c1 commit 49fd3d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/models/register/status.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,18 @@ def check_pdf_files
305305
add_note('The effective publication includes the SeqCode accession')
306306
end
307307
names.each do |n|
308-
Check.find_or_create_by(
309-
name: n, kind: :effective_publication_missing_accession, pass: has_acc
310-
)
308+
Check.create_with(pass: has_acc).find_or_create_by(
309+
name: n, kind: :effective_publication_missing_accession
310+
).update(pass: has_acc)
311311
end
312312

313313
if inames.values.all?
314314
add_note('The effective publication mentions all names in the list')
315315
end
316316
inames.each do |n, v|
317-
Check.find_or_create_by(
318-
name: n, kind: :name_missing_in_effective_publication, pass: v
319-
)
317+
Check.create_with(pass: v).find_or_create_by(
318+
name: n, kind: :name_missing_in_effective_publication
319+
).update(pass: v)
320320
end
321321

322322
has_acc && inames.values.all?

0 commit comments

Comments
 (0)