Skip to content

Commit

Permalink
πŸ› Fix av should not attempt to scan folders when created (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora authored Nov 20, 2024
2 parents ea8fc2e + e7049f8 commit c1856ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class DocumentsService {
await updateItemSize(driveItem.parent_id, this.repository, context);

// If AV feature is enabled, scan the file
if (globalResolver.services.av?.avEnabled && version) {
if (!driveItem.is_directory && globalResolver.services.av?.avEnabled && version) {
try {
driveItem.av_status = await globalResolver.services.av.scanDocument(
driveItem,
Expand Down

0 comments on commit c1856ca

Please sign in to comment.