mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Renamed variables to better fit the context
no issue - Slightly less code without compromising readability
This commit is contained in:
parent
40c4342786
commit
3f59c1893b
1 changed files with 5 additions and 5 deletions
|
@ -6,16 +6,16 @@ module.exports = {
|
|||
statusCode: 201,
|
||||
permissions: false,
|
||||
async query(frame) {
|
||||
let thumbnail = null;
|
||||
let thumbnailPath = null;
|
||||
if (frame.files.thumbnail && frame.files.thumbnail[0]) {
|
||||
thumbnail = await storage.getStorage('media').save(frame.files.thumbnail[0]);
|
||||
thumbnailPath = await storage.getStorage('media').save(frame.files.thumbnail[0]);
|
||||
}
|
||||
|
||||
const file = await storage.getStorage('media').save(frame.files.file[0]);
|
||||
const filePath = await storage.getStorage('media').save(frame.files.file[0]);
|
||||
|
||||
return {
|
||||
filePath: file,
|
||||
thumbnailPath: thumbnail
|
||||
filePath,
|
||||
thumbnailPath
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue