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()) {
|
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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user