mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
rename evt to event
This commit is contained in:
parent
ea987dfa14
commit
434056b839
1 changed files with 2 additions and 2 deletions
|
|
@ -14,12 +14,12 @@ interface ImportEventsOpts {
|
|||
profilesOnly: boolean;
|
||||
}
|
||||
|
||||
type DoEvent = (evt: NostrEvent) => void | Promise<void>;
|
||||
type DoEvent = (event: NostrEvent) => void | Promise<void>;
|
||||
const importUsers = async (
|
||||
authors: string[],
|
||||
relays: string[],
|
||||
opts?: Partial<ImportEventsOpts>,
|
||||
doEvent: DoEvent = async (evt: NostrEvent) => await eventsDB.event(evt),
|
||||
doEvent: DoEvent = async (event: NostrEvent) => await eventsDB.event(event),
|
||||
) => {
|
||||
// Kind 0s + follow lists.
|
||||
const profiles: Record<string, Record<number, NostrEvent>> = {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue