summaryrefslogtreecommitdiff
path: root/src/api/endpoints/drive/files/update.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/drive/files/update.ts')
-rw-r--r--src/api/endpoints/drive/files/update.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/endpoints/drive/files/update.ts b/src/api/endpoints/drive/files/update.ts
index 7a6d2562fb..4e56b30ace 100644
--- a/src/api/endpoints/drive/files/update.ts
+++ b/src/api/endpoints/drive/files/update.ts
@@ -20,7 +20,6 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
const [fileId, fileIdErr] = $(params.file_id).id().$;
if (fileIdErr) return rej('invalid file_id param');
-
// Fetch file
const file = await DriveFile
.findOne({
@@ -32,7 +31,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
return rej('file-not-found');
}
- const updateQuery: any = {}
+ const updateQuery: any = {};
// Get 'name' parameter
const [name, nameErr] = $(params.name).optional.string().pipe(validateFileName).$;