From f3d5c82cdbf5e4ef9fe608421d72c998322156b9 Mon Sep 17 00:00:00 2001 From: dholms Date: Thu, 7 Dec 2023 14:29:10 -0600 Subject: [PATCH] missed one --- .../src/data-plane/server/routes/threads.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/threads.ts b/packages/bsky/src/data-plane/server/routes/threads.ts index 34c15b53fce..340317d8657 100644 --- a/packages/bsky/src/data-plane/server/routes/threads.ts +++ b/packages/bsky/src/data-plane/server/routes/threads.ts @@ -1,8 +1,6 @@ import { ServiceImpl } from '@connectrpc/connect' import { Service } from '../../gen/bsky_connect' -import * as ui8 from 'uint8arrays' import { Database } from '../../../db' -import { keyBy } from '@atproto/common' import { getAncestorsAndSelfQb, getDescendentsQb, @@ -33,22 +31,4 @@ export default (db: Database): Partial> => ({ ] return { uris } }, - - async getThreadgates(req) { - if (req.uris.length === 0) { - return { records: [] } - } - const res = await db.db - .selectFrom('record') - .selectAll() - .where('uri', 'in', req.uris) - .execute() - const byUri = keyBy(res, 'uri') - const records = req.uris.map((uri) => { - const row = byUri[uri] - const json = row ? row.json : JSON.stringify(null) - return ui8.fromString(json, 'utf8') - }) - return { records } - }, })