From f063da1b86204702eb33721a8849932f60203ce1 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 19 Sep 2024 19:35:38 -0300 Subject: [PATCH] refactor: add search field to AuthorStatsRow, remove AuthorSearch interface --- src/db/DittoTables.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/db/DittoTables.ts b/src/db/DittoTables.ts index 642db484..c05ffe66 100644 --- a/src/db/DittoTables.ts +++ b/src/db/DittoTables.ts @@ -9,7 +9,6 @@ export interface DittoTables extends NPostgresSchema { event_stats: EventStatsRow; pubkey_domains: PubkeyDomainRow; event_zaps: EventZapRow; - author_search: AuthorSearch; } type NostrEventsRow = NPostgresSchema['nostr_events'] & { @@ -21,6 +20,7 @@ interface AuthorStatsRow { followers_count: number; following_count: number; notes_count: number; + search: string; } interface EventStatsRow { @@ -55,8 +55,3 @@ interface EventZapRow { amount_millisats: number; comment: string; } - -interface AuthorSearch { - pubkey: string; - search: string; -}