fix: skip trashed files

This commit is contained in:
MontaGhanmy
2025-05-19 16:41:17 +01:00
committed by Anton Shepilov
parent 34e935027f
commit cb43d8c24e
@@ -71,7 +71,7 @@ const purgeIndexesCommand: yargs.CommandModule<unknown, unknown> = {
for (const userFile of userFiles.getEntities()) { for (const userFile of userFiles.getEntities()) {
let fileObject: any = {}; let fileObject: any = {};
try { try {
if (userFile.migrated) { if (userFile.migrated || userFile.is_in_trash) {
continue; continue;
} }
const filePathItems = await getPath(userFile.id, documentsRepo, true, { const filePathItems = await getPath(userFile.id, documentsRepo, true, {