0
Fork 0
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:
Naz 2021-11-08 20:01:27 +04:00
parent 40c4342786
commit 3f59c1893b

View file

@ -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
};
}
}