summaryrefslogtreecommitdiff
path: root/src/api/endpoints/drive/files
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-18 06:21:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-18 06:21:22 +0900
commit46e85e5cc38c0df8d3dd81fb8c48fa8d17e989de (patch)
tree0f6610d0ee8b9451ddad8706450b0c2715e66bee /src/api/endpoints/drive/files
parent[Server] :v: (diff)
downloadsharkey-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.js4
-rw-r--r--src/api/endpoints/drive/files/show.js4
-rw-r--r--src/api/endpoints/drive/files/update.js4
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) {