Merge pull request #8380 from mfo/US/PiecesJustificativesService.safe_attachment

fix(PiecesJustificativesService.safe_attachment): utilise la nouvelle API pour comparer le resultat du scan antivirus
This commit is contained in:
mfo 2023-01-06 11:08:49 +01:00 committed by GitHub
commit 3dbfd81d95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,6 @@ class PiecesJustificativesService
def self.safe_attachment(attachment)
attachment
.blob
.metadata[:virus_scan_result] == ActiveStorage::VirusScanner::SAFE
.virus_scan_result == ActiveStorage::VirusScanner::SAFE
end
end