diff --git a/src/server/api/endpoints/admin/drive/clean-remote-files.ts b/src/server/api/endpoints/admin/drive/clean-remote-files.ts index a861052bbe419a867f2b40ce0c84e8fb11733242..69cfe0db9429a656869608b86bddcb38672b77f2 100644 --- a/src/server/api/endpoints/admin/drive/clean-remote-files.ts +++ b/src/server/api/endpoints/admin/drive/clean-remote-files.ts @@ -12,7 +12,8 @@ export const meta = { export default define(meta, async (ps, me) => { const files = await DriveFiles.find({ - userHost: Not(IsNull()) + userHost: Not(IsNull()), + isLink: false, }); for (const file of files) {