fix: skip trashed files
This commit is contained in:
committed by
Anton Shepilov
parent
34e935027f
commit
cb43d8c24e
@@ -71,7 +71,7 @@ const purgeIndexesCommand: yargs.CommandModule<unknown, unknown> = {
|
||||
for (const userFile of userFiles.getEntities()) {
|
||||
let fileObject: any = {};
|
||||
try {
|
||||
if (userFile.migrated) {
|
||||
if (userFile.migrated || userFile.is_in_trash) {
|
||||
continue;
|
||||
}
|
||||
const filePathItems = await getPath(userFile.id, documentsRepo, true, {
|
||||
|
||||
Reference in New Issue
Block a user