[API] Fix bug

This commit is contained in:
syuilo 2018-11-05 01:42:41 +09:00
parent 43daf814df
commit 454c1e3faf
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 folders = await DriveFolder const folders = await DriveFolder
.find({ .find({
name: name, name: ps.name,
userId: user._id, userId: user._id,
parentId: ps.parentId parentId: ps.parentId
}); });