mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 23:22:50 +00:00
lint 🥀
This commit is contained in:
parent
94858d563b
commit
35a0768008
1 changed files with 3 additions and 3 deletions
|
|
@ -143,15 +143,15 @@ module Backend
|
|||
.find_by_public_id!(params[:id])
|
||||
|
||||
ActiveRecord::Associations::Preloader.new(
|
||||
records: [@verification.identity],
|
||||
associations: { resemblances: [:past_identity] }
|
||||
records: [ @verification.identity ],
|
||||
associations: { resemblances: [ :past_identity ] }
|
||||
).call
|
||||
|
||||
doc_resemblances = @verification.identity.resemblances.select { |r| r.is_a?(Identity::Resemblance::ReusedDocumentResemblance) }
|
||||
if doc_resemblances.any?
|
||||
ActiveRecord::Associations::Preloader.new(
|
||||
records: doc_resemblances,
|
||||
associations: [:document, { past_document: :verification }]
|
||||
associations: [ :document, { past_document: :verification } ]
|
||||
).call
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue