Skip to content

Commit

Permalink
Add missing import. Fix relayPool typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Aug 10, 2024
1 parent 5a459f1 commit e90a4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validation/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "../common/constants.ts";
import { MINIMUM_TRUSTROOTS_USERNAME_LENGTH } from "../common/constants.ts";
import { MAP_NOTE_KIND } from "../common/constants.ts";
import { nostrify } from "../deps.ts";
import { nostrify, nostrTools } from "../deps.ts";
import { Profile } from "../types.ts";

async function getKindZeroEvent(relayPool: nostrify.NPool, pubKey: string) {
Expand Down Expand Up @@ -90,7 +90,7 @@ export async function validateEvent(
return true;
}

const kindZeroEvent = await getKindZeroEvent(relay, event.pubkey);
const kindZeroEvent = await getKindZeroEvent(relayPool, event.pubkey);

if (typeof kindZeroEvent === "undefined") {
console.log("#Kmf59M Skipping event with no kind zero event", { event });
Expand Down

0 comments on commit e90a4c2

Please sign in to comment.