diff options
| author | otofune <otofune@gmail.com> | 2017-11-06 16:22:18 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-11-06 16:22:18 +0900 |
| commit | 64be0d6deddef4b8caced377dc22f94425cc4358 (patch) | |
| tree | 8dcc86d746142647fa0cd282d025d65d204010da /src/api/endpoints/posts | |
| parent | fix (diff) | |
| download | sharkey-64be0d6deddef4b8caced377dc22f94425cc4358.tar.gz sharkey-64be0d6deddef4b8caced377dc22f94425cc4358.tar.bz2 sharkey-64be0d6deddef4b8caced377dc22f94425cc4358.zip | |
MongoDBの階層構造検索に関する思い違いの修正
Diffstat (limited to 'src/api/endpoints/posts')
| -rw-r--r-- | src/api/endpoints/posts/create.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts index 1507639776..4f4b7e2e83 100644 --- a/src/api/endpoints/posts/create.ts +++ b/src/api/endpoints/posts/create.ts @@ -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) { |