soft delete v1

This commit is contained in:
2022-05-22 04:11:15 +00:00
parent d2091494a1
commit c6fbe956a0
6 changed files with 108 additions and 25 deletions

View File

@ -16,7 +16,7 @@ export default router => {
const itemid = (await db`
select id
from "items"
where id = ${+avatar}
where id = ${+avatar} and active = 'true'
`)?.[0]?.id;
if(!itemid) {