Reopen advanced edits from their saved recipe, seed or take over the quick editor from them, refresh thumbnails after a save, and add an edited-only download. Also fixes the Lumenroom library collapsing to slivers on large shoots and documents deploying both containers on a new host. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -70,6 +70,12 @@ export function findThumb(id) {
|
||||
return fs.existsSync(p) ? p : null;
|
||||
}
|
||||
|
||||
/** Drops the cached grid thumbnail so the next request refetches it. */
|
||||
export async function removeThumb(id) {
|
||||
const thumb = findThumb(id);
|
||||
if (thumb) await fsp.rm(thumb, { force: true });
|
||||
}
|
||||
|
||||
export async function removeAsset(id) {
|
||||
const files = [findOriginal(id), findPreview(id), findThumb(id)];
|
||||
await Promise.all(files.map((f) => (f ? fsp.rm(f, { force: true }) : Promise.resolve())));
|
||||
|
||||
Reference in New Issue
Block a user