From de7cd18f132e29f5cb82dc360cace7a21b66e72e 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 a861052bb..69cfe0db9 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) {