Fix event post loop
This commit is contained in:
parent
a6e9198e86
commit
31599d488e
1 changed files with 3 additions and 3 deletions
6
main.ts
6
main.ts
|
@ -182,9 +182,9 @@ for (const i in posts) {
|
||||||
|
|
||||||
alert("About to post to Nostr.");
|
alert("About to post to Nostr.");
|
||||||
|
|
||||||
for (const event in events) {
|
for (const i in events) {
|
||||||
console.log(event);
|
const event = events[i]
|
||||||
console.log(await relay.event(event));
|
await relay.event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
await relay.close()
|
await relay.close()
|
||||||
|
|
Loading…
Reference in a new issue