MongoDBの階層構造検索に関する思い違いの修正
This commit is contained in:
parent
b266ed3e4f
commit
64be0d6ded
8 changed files with 15 additions and 36 deletions
|
|
@ -24,11 +24,9 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||
// Issue query
|
||||
const files = await DriveFile
|
||||
.find({
|
||||
metadata: {
|
||||
name: name,
|
||||
user_id: user._id,
|
||||
folder_id: folderId
|
||||
}
|
||||
'metadata.name': name,
|
||||
'metadata.user_id': user._id,
|
||||
'metadata.folder_id': folderId
|
||||
});
|
||||
|
||||
// Serialize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue