diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 06:21:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 06:21:22 +0900 |
| commit | 46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de (patch) | |
| tree | 0f6610d0ee8b9451ddad8706450b0c2715e66bee /src/api/endpoints/drive/files | |
| parent | [Server] :v: (diff) | |
| download | sharkey-46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de.tar.gz sharkey-46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de.tar.bz2 sharkey-46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de.zip | |
[API] Fix bugs
Diffstat (limited to 'src/api/endpoints/drive/files')
| -rw-r--r-- | src/api/endpoints/drive/files/find.js | 4 | ||||
| -rw-r--r-- | src/api/endpoints/drive/files/show.js | 4 | ||||
| -rw-r--r-- | src/api/endpoints/drive/files/update.js | 4 |
3 files changed, 9 insertions, 3 deletions
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) { |