Skip to content

Commit 3c53d0d

Browse files
committed
fix: throw error for logging
1 parent d89d89a commit 3c53d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/reverse_etl/extractors/incremental_delta.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def process_record(message, sync_run, model)
4040
fingerprint = generate_fingerprint(record.data)
4141
primary_key = record.data.with_indifferent_access[model.primary_key]
4242

43-
return if primary_key.blank?
43+
raise StandardError, "Primary key cannot be blank" if primary_key.blank?
4444

4545
sync_record = find_or_initialize_sync_record(sync_run, primary_key)
4646
update_or_create_sync_record(sync_record, record, sync_run, fingerprint)

0 commit comments

Comments
 (0)