🔀 Merge remote-tracking branch 'origin/main' into release/v1.0.5

This commit is contained in:
Eric Doughty-Papassideris
2024-11-26 17:04:36 +01:00
5 changed files with 48 additions and 31 deletions
@@ -8,8 +8,8 @@ import * as UUIDTools from "../../../utils/uuid";
export const TYPE = "drive_files";
export type DriveScope = "personal" | "shared";
export type AVStatusSafe = "safe";
export type AVStatusUnsafe = "uploaded" | "scanning" | "scan_failed" | "malicious" | "skipped";
export type AVStatusSafe = "uploaded" | "safe";
export type AVStatusUnsafe = "scanning" | "scan_failed" | "malicious" | "skipped";
export type AVStatus = AVStatusSafe | AVStatusUnsafe;
/**
@@ -1119,7 +1119,8 @@ export class DocumentsService {
// Check files in the current directory
const maliciousFiles = entities.filter(
child => !child.is_directory && child.av_status !== "safe",
child =>
!child.is_directory && child.av_status && !["uploaded", "safe"].includes(child.av_status),
);
if (maliciousFiles.length > 0) {