summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-13 01:17:44 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-13 01:17:44 +0900
commit54dc1afc99baa754dbb9e25e992fce0dc78b178a (patch)
tree7e86826fef7eba74ab05ce8bbe3d4648b58a1847 /src/api
parent[Test] Add some tests (diff)
downloadsharkey-54dc1afc99baa754dbb9e25e992fce0dc78b178a.tar.gz
sharkey-54dc1afc99baa754dbb9e25e992fce0dc78b178a.tar.bz2
sharkey-54dc1afc99baa754dbb9e25e992fce0dc78b178a.zip
[API] Fix bug
Diffstat (limited to 'src/api')
-rw-r--r--src/api/endpoints/drive/files/update.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/drive/files/update.js b/src/api/endpoints/drive/files/update.js
index 612d380955..74ff012ecb 100644
--- a/src/api/endpoints/drive/files/update.js
+++ b/src/api/endpoints/drive/files/update.js
@@ -74,7 +74,7 @@ module.exports = (params, user) =>
});
if (folder === null) {
- return reject('folder-not-found');
+ return rej('folder-not-found');
}
file.folder_id = folder._id;