Pull Request branch dev-clone to main #1
|
|
@ -330,7 +330,7 @@ const managementAspectRoute = new Hono<HonoEnv>()
|
||||||
|
|
||||||
const aspect = (await db.select().from(aspects).where(eq(aspects.id, aspectId)))[0];
|
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) {
|
if (!aspect.deletedAt) {
|
||||||
throw forbidden({
|
throw forbidden({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user