feat: Introduce is_deleted flag for items, add scripts for dummy data and thumbnail population, and refine item deletion and statistics.

This commit is contained in:
x
2026-01-24 17:32:28 +01:00
parent 63e86e9be1
commit 1646fdba56
3 changed files with 27 additions and 5 deletions

View File

@@ -267,7 +267,7 @@ export default router => {
});
}
await db`update "items" set active = 'false' where id = ${id}`;
await db`update "items" set active = 'false', is_deleted = true where id = ${id}`;
await fs.copyFile(`./public/b/${f0ck[0].dest}`, `./deleted/b/${f0ck[0].dest}`).catch(_ => { });
await fs.copyFile(`./public/t/${id}.webp`, `./deleted/t/${id}.webp`).catch(_ => { });