summaryrefslogtreecommitdiff
path: root/src/api/endpoints/messaging
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-11-06 16:22:18 +0900
committerotofune <otofune@gmail.com>2017-11-06 16:22:18 +0900
commit64be0d6deddef4b8caced377dc22f94425cc4358 (patch)
tree8dcc86d746142647fa0cd282d025d65d204010da /src/api/endpoints/messaging
parentfix (diff)
downloadsharkey-64be0d6deddef4b8caced377dc22f94425cc4358.tar.gz
sharkey-64be0d6deddef4b8caced377dc22f94425cc4358.tar.bz2
sharkey-64be0d6deddef4b8caced377dc22f94425cc4358.zip
MongoDBの階層構造検索に関する思い違いの修正
Diffstat (limited to 'src/api/endpoints/messaging')
-rw-r--r--src/api/endpoints/messaging/messages/create.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/endpoints/messaging/messages/create.ts b/src/api/endpoints/messaging/messages/create.ts
index 1d186268fb..149852c093 100644
--- a/src/api/endpoints/messaging/messages/create.ts
+++ b/src/api/endpoints/messaging/messages/create.ts
@@ -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) {