summaryrefslogtreecommitdiff
path: root/src/api/endpoints
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-08 16:52:06 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-08 16:52:06 +0900
commited79710c2bc23a4a974c917d52915f5030df34d4 (patch)
treea5ac7ec2c391627c92d4816a2fdbb2aceb1e2e70 /src/api/endpoints
parent:v: :art: :v: (diff)
downloadsharkey-ed79710c2bc23a4a974c917d52915f5030df34d4.tar.gz
sharkey-ed79710c2bc23a4a974c917d52915f5030df34d4.tar.bz2
sharkey-ed79710c2bc23a4a974c917d52915f5030df34d4.zip
Fix bug
Diffstat (limited to 'src/api/endpoints')
-rw-r--r--src/api/endpoints/drive/stream.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/drive/stream.ts b/src/api/endpoints/drive/stream.ts
index 58e7d11678..7ee255e5d1 100644
--- a/src/api/endpoints/drive/stream.ts
+++ b/src/api/endpoints/drive/stream.ts
@@ -39,7 +39,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
_id: -1
};
const query = {
- user_id: user._id
+ 'metadata.user_id': user._id
} as any;
if (sinceId) {
sort._id = 1;