From aff80199e5b8d0f27f13b3679378c4b0a60e920f Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 May 2019 12:22:47 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/admin/drive/clean-remote-files.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a861052bbe..69cfe0db94 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) {