MongoDBの階層構造検索に関する思い違いの修正
This commit is contained in:
parent
b266ed3e4f
commit
64be0d6ded
8 changed files with 15 additions and 36 deletions
|
|
@ -40,10 +40,8 @@ module.exports = async (params, user, app) => {
|
|||
_id: -1
|
||||
};
|
||||
const query = {
|
||||
metadata: {
|
||||
user_id: user._id,
|
||||
folder_id: folderId
|
||||
}
|
||||
'metadata.user_id': user._id,
|
||||
'metadata.folder_id': folderId
|
||||
} as any;
|
||||
if (sinceId) {
|
||||
sort._id = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue