mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: add search field to AuthorStatsRow, remove AuthorSearch interface
This commit is contained in:
parent
017c17c8a2
commit
f063da1b86
1 changed files with 1 additions and 6 deletions
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue