mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 18:45:15 +00:00
awa
This commit is contained in:
parent
98a00932c3
commit
4540c65cfd
1 changed files with 2 additions and 2 deletions
|
|
@ -18,11 +18,11 @@ module AirtableETL
|
||||||
when :letters
|
when :letters
|
||||||
recs.each do |rec|
|
recs.each do |rec|
|
||||||
public_id = rec[field_map[:public_id]]
|
public_id = rec[field_map[:public_id]]
|
||||||
|
next unless public_id.present?
|
||||||
letter = Letter.find_by_public_id(public_id)
|
letter = Letter.find_by_public_id(public_id)
|
||||||
if letter.nil?
|
if letter.nil?
|
||||||
Rails.logger.error("Letter not found for public_id: #{public_id}")
|
Rails.logger.error("Letter not found for public_id: #{public_id}")
|
||||||
# rec[field_map[:aasm_state]] = "not_found"
|
rec[field_map[:aasm_state]] = "not_found"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue