From 438563b50523548f1f66f951f8cb1a5ddeb71288 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Nov 2018 20:47:56 +0900 Subject: [PATCH] [API] Fix bug --- src/server/api/endpoints/drive/files/find.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/drive/files/find.ts b/src/server/api/endpoints/drive/files/find.ts index 1f9c3de1c..8bc392fef 100644 --- a/src/server/api/endpoints/drive/files/find.ts +++ b/src/server/api/endpoints/drive/files/find.ts @@ -26,7 +26,7 @@ export const meta = { export default define(meta, (ps, user) => new Promise(async (res, rej) => { const files = await DriveFile .find({ - filename: name, + filename: ps.name, 'metadata.userId': user._id, 'metadata.folderId': ps.folderId });