File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { zValidator } from "@hono/zod-validator" ;
2- import { eq } from "drizzle-orm" ;
2+ import { eq , not } from "drizzle-orm" ;
33import { escape } from "es-toolkit" ;
44import { type Context , Hono } from "hono" ;
55import { cors } from "hono/cors" ;
66import { z } from "zod" ;
77import { Layout } from "./components/Layout" ;
88import { db } from "./db" ;
9+ import { HOLLO_RELAY_ACTOR_ID } from "./entities/relay" ;
910import { loginRequired } from "./login" ;
1011import {
1112 createAccessToken ,
@@ -20,6 +21,7 @@ import {
2021 type Application ,
2122 type Scope ,
2223 accessTokens ,
24+ accountOwners as accountOwnersTable ,
2325 applications ,
2426 scopeEnum ,
2527} from "./schema" ;
@@ -55,6 +57,7 @@ app.get(
5557 return c . json ( { error : "invalid_redirect_uri" } , 400 ) ;
5658 }
5759 const accountOwners = await db . query . accountOwners . findMany ( {
60+ where : not ( eq ( accountOwnersTable . id , HOLLO_RELAY_ACTOR_ID ) ) ,
5861 with : { account : true } ,
5962 } ) ;
6063 return c . html (
You can’t perform that action at this time.
0 commit comments