mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 16:38:18 +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
|
||||
recs.each do |rec|
|
||||
public_id = rec[field_map[:public_id]]
|
||||
|
||||
next unless public_id.present?
|
||||
letter = Letter.find_by_public_id(public_id)
|
||||
if letter.nil?
|
||||
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
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue