🐛 Fix av should not attempt to scan folders when created (#737)
This commit is contained in:
@@ -478,7 +478,7 @@ export class DocumentsService {
|
|||||||
await updateItemSize(driveItem.parent_id, this.repository, context);
|
await updateItemSize(driveItem.parent_id, this.repository, context);
|
||||||
|
|
||||||
// If AV feature is enabled, scan the file
|
// If AV feature is enabled, scan the file
|
||||||
if (globalResolver.services.av?.avEnabled && version) {
|
if (!driveItem.is_directory && globalResolver.services.av?.avEnabled && version) {
|
||||||
try {
|
try {
|
||||||
driveItem.av_status = await globalResolver.services.av.scanDocument(
|
driveItem.av_status = await globalResolver.services.av.scanDocument(
|
||||||
driveItem,
|
driveItem,
|
||||||
|
|||||||
Reference in New Issue
Block a user