mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
MongoDBの階層構造検索に関する思い違いの修正
This commit is contained in:
@ -54,9 +54,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
if (fileId !== undefined) {
|
||||
file = await DriveFile.findOne({
|
||||
_id: fileId,
|
||||
metadata: {
|
||||
user_id: user._id
|
||||
}
|
||||
'metadata.user_id': user._id
|
||||
});
|
||||
|
||||
if (file === null) {
|
||||
|
Reference in New Issue
Block a user