MongoDBの階層構造検索に関する思い違いの修正
This commit is contained in:
parent
b266ed3e4f
commit
64be0d6ded
8 changed files with 15 additions and 36 deletions
|
|
@ -44,9 +44,7 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
|
|||
// SELECT _id
|
||||
const entity = await DriveFile.findOne({
|
||||
_id: mediaId,
|
||||
metadata: {
|
||||
user_id: user._id
|
||||
}
|
||||
'metadata.user_id': user._id
|
||||
});
|
||||
|
||||
if (entity === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue