update : Second revision on management-aspect
This commit is contained in:
parent
d0fd727e7c
commit
001327cc97
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user