[API] Fix bug

This commit is contained in:
syuilo 2018-11-06 20:47:56 +09:00
parent 92dfcdad57
commit 438563b505
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -26,7 +26,7 @@ export const meta = {
export default define(meta, (ps, user) => new Promise(async (res, rej) => { export default define(meta, (ps, user) => new Promise(async (res, rej) => {
const files = await DriveFile const files = await DriveFile
.find({ .find({
filename: name, filename: ps.name,
'metadata.userId': user._id, 'metadata.userId': user._id,
'metadata.folderId': ps.folderId 'metadata.folderId': ps.folderId
}); });