fix lint (automattic)
This commit is contained in:
@ -63,5 +63,5 @@ module.exports = async (params, user, app) => {
|
||||
|
||||
// Serialize
|
||||
const _files = await Promise.all(files.map(file => serialize(file)));
|
||||
return _files
|
||||
return _files;
|
||||
};
|
||||
|
@ -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).$;
|
||||
|
Reference in New Issue
Block a user