From 46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 18 Jan 2017 06:21:22 +0900 Subject: [API] Fix bugs --- src/api/endpoints/drive/files/find.js | 4 +++- src/api/endpoints/drive/files/show.js | 4 +++- src/api/endpoints/drive/files/update.js | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/api/endpoints/drive/files') diff --git a/src/api/endpoints/drive/files/find.js b/src/api/endpoints/drive/files/find.js index 74f2e4026f..a0a0e0b417 100644 --- a/src/api/endpoints/drive/files/find.js +++ b/src/api/endpoints/drive/files/find.js @@ -38,7 +38,9 @@ module.exports = (params, user) => user_id: user._id, folder_id: folder }, { - data: false + fields: { + data: false + } }); // Serialize diff --git a/src/api/endpoints/drive/files/show.js b/src/api/endpoints/drive/files/show.js index 79b07dace2..dffb6d6612 100644 --- a/src/api/endpoints/drive/files/show.js +++ b/src/api/endpoints/drive/files/show.js @@ -28,7 +28,9 @@ module.exports = (params, user) => _id: new mongo.ObjectID(fileId), user_id: user._id }, { - data: false + fields: { + data: false + } }); if (file === null) { diff --git a/src/api/endpoints/drive/files/update.js b/src/api/endpoints/drive/files/update.js index 13ec30b4fb..cc4a8af8d5 100644 --- a/src/api/endpoints/drive/files/update.js +++ b/src/api/endpoints/drive/files/update.js @@ -31,7 +31,9 @@ module.exports = (params, user) => _id: new mongo.ObjectID(fileId), user_id: user._id }, { - data: false + fields: { + data: false + } }); if (file === null) { -- cgit v1.2.3-freya