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;