mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29: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;
|
profilesOnly: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
type DoEvent = (evt: NostrEvent) => void | Promise<void>;
|
type DoEvent = (event: NostrEvent) => void | Promise<void>;
|
||||||
const importUsers = async (
|
const importUsers = async (
|
||||||
authors: string[],
|
authors: string[],
|
||||||
relays: string[],
|
relays: string[],
|
||||||
opts?: Partial<ImportEventsOpts>,
|
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.
|
// Kind 0s + follow lists.
|
||||||
const profiles: Record<string, Record<number, NostrEvent>> = {};
|
const profiles: Record<string, Record<number, NostrEvent>> = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue