style: format via prettier

This commit is contained in:
2026-03-27 20:21:47 -04:00
parent 27093acadf
commit 6a59b72d08
2 changed files with 21 additions and 12 deletions
+8 -5
View File
@@ -97,11 +97,14 @@ async function deleteCacheEntry(id: string, relativePath?: string): Promise<void
const db = getDatabase();
const resolvedPath =
relativePath ??
((db
.prepare('SELECT relative_path AS relativePath FROM og_image_cache WHERE paste_id = ?')
.get(id) as { relativePath: string } | undefined)?.relativePath ?? null);
(
db
.prepare('SELECT relative_path AS relativePath FROM og_image_cache WHERE paste_id = ?')
.get(id) as { relativePath: string } | undefined
)?.relativePath ??
null;
db.prepare('DELETE FROM og_image_cache WHERE paste_id = ?').run(id);
db.prepare('DELETE FROM og_image_cache WHERE paste_id = ?').run(id);
if (resolvedPath) {
await deleteCacheFile(resolvedPath);
}
@@ -204,4 +207,4 @@ export function scheduleOgImageCachePurge(): void {
lastPurgeAt = Date.now();
purgeInFlight = null;
});
}
}