MongoDBの階層構造検索に関する思い違いの修正
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
// Calculate drive usage
|
||||
const usage = ((await DriveFile
|
||||
.aggregate([
|
||||
{ $match: { metadata: { user_id: user._id } } },
|
||||
{ $match: { 'metadata.user_id': user._id } },
|
||||
{
|
||||
$project: {
|
||||
length: true
|
||||
|
Reference in New Issue
Block a user