update : Second revision on management-aspect

This commit is contained in:
percyfikri 2024-08-18 22:36:20 +07:00
parent d0fd727e7c
commit 001327cc97

View File

@ -330,7 +330,7 @@ const managementAspectRoute = new Hono<HonoEnv>()
const aspect = (await db.select().from(aspects).where(eq(aspects.id, aspectId)))[0];
if (!aspect) return c.notFound();
if (!aspect) throw notFound();
if (!aspect.deletedAt) {
throw forbidden({