fix lint (automattic)
This commit is contained in:
parent
04648db1c2
commit
d5cc4cc9c2
9 changed files with 48 additions and 49 deletions
|
|
@ -33,5 +33,5 @@ module.exports = async (params, user) => {
|
|||
detail: true
|
||||
});
|
||||
|
||||
return _file
|
||||
return _file;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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).$;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue