refactor: add search field to AuthorStatsRow, remove AuthorSearch interface

This commit is contained in:
P. Reis 2024-09-19 19:35:38 -03:00
parent 017c17c8a2
commit f063da1b86

View file

@ -9,7 +9,6 @@ export interface DittoTables extends NPostgresSchema {
event_stats: EventStatsRow; event_stats: EventStatsRow;
pubkey_domains: PubkeyDomainRow; pubkey_domains: PubkeyDomainRow;
event_zaps: EventZapRow; event_zaps: EventZapRow;
author_search: AuthorSearch;
} }
type NostrEventsRow = NPostgresSchema['nostr_events'] & { type NostrEventsRow = NPostgresSchema['nostr_events'] & {
@ -21,6 +20,7 @@ interface AuthorStatsRow {
followers_count: number; followers_count: number;
following_count: number; following_count: number;
notes_count: number; notes_count: number;
search: string;
} }
interface EventStatsRow { interface EventStatsRow {
@ -55,8 +55,3 @@ interface EventZapRow {
amount_millisats: number; amount_millisats: number;
comment: string; comment: string;
} }
interface AuthorSearch {
pubkey: string;
search: string;
}