Skip to content

Commit 11a915c

Browse files
committed
Update status.rb
1 parent 94e452b commit 11a915c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/models/register/status.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,15 @@ def check_pdf_files
301301
end
302302

303303
names.each do |n|
304-
Check.create_with(pass: anames[n]).find_or_create_by(
304+
par = { pass: anames[n], user: nil }
305+
Check.create_with(par).find_or_create_by(
305306
name: n, kind: :effective_publication_missing_accession
306-
).update(pass: anames[n])
307+
).update(par)
307308

308-
Check.create_with(pass: inames[n]).find_or_create_by(
309+
par = { pass: inames[n], user: nil }
310+
Check.create_with(par).find_or_create_by(
309311
name: n, kind: :name_missing_in_effective_publication
310-
).update(pass: inames[n])
312+
).update(par)
311313
end
312314

313315
add_note('The effective publication files have been parsed')

0 commit comments

Comments
 (0)