somehow, this works
This commit is contained in:
parent
c4272d3c17
commit
00ab7308ff
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export async function removeOldImages(ipc, size) {
|
|||
});
|
||||
}).filter(Boolean);
|
||||
const resolvedFiles = await Promise.all(files);
|
||||
let newSize = resolvedFiles.reduce((a, b)=>{
|
||||
let newSize = resolvedFiles.filter(Boolean).reduce((a, b) => {
|
||||
return a + b.size;
|
||||
}, 0);
|
||||
const oldestFiles = resolvedFiles.sort((a, b) => a.ctime - b.ctime);
|
||||
|
|
Loading…
Reference in a new issue