Skip to content

Commit

Permalink
hotfix: broken events
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Mar 9, 2024
1 parent fb044d8 commit 7599ad3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/nocapd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"dependencies": {
"@nostr-fetch/adapter-nostr-tools": "0.14.1",
"@nostrwatch/announce": "^0.0.3",
"@nostrwatch/announce": "^0.0.4",
"@nostrwatch/controlflow": "^0.0.2",
"@nostrwatch/logger": "^0.0.3",
"@nostrwatch/nocap": "^0.1.11",
Expand Down
6 changes: 3 additions & 3 deletions apps/nocapd/src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const rcache = relaycache(process.env.NWCACHE_PATH || './.lmdb')

let config

const maybeAnnounce = () => {
const maybeAnnounce = async () => {
const map = {
"publisher.kinds": "kinds",
"nocapd.checks.options.timeout": "timeouts",
Expand All @@ -41,7 +41,7 @@ const maybeAnnounce = () => {
console.dir(conf)
console.dir(announce.events)
console.dir(announce.events['10166'].tags)
announce.publish( conf.relays )
await announce.publish( conf.relays )
}

const schedulePopulator = ($check) =>{
Expand Down Expand Up @@ -144,7 +144,7 @@ dP dP \`88888P' \`88888P' \`88888P8 88Y888P' \`88888P8
export const Nocapd = async () => {
header()
config = await loadConfig()
maybeAnnounce()
await maybeAnnounce()
await maybeBootstrap()
const $q = await initWorker()
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/announce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/announce",
"version": "0.0.3",
"version": "0.0.4",
"description": "Generates a NIP-66 10166 event, NIP-65 10002 event and NIP-01 0 events for monitors on *every* boot.",
"main": "dist/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/announce/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class AnnounceMonitor {
const kind = kinds[i]
const promises = $pool.publish(relays, this.events[kind])
await Promise.all(promises)
console.log(this.events[kind].id, 'published to', relays.join(', '))
console.log(this.events[kind].kind, 'published to', relays.join(', '))
pubbedIds.push(this.events[kind].id)
}
return pubbedIds
Expand Down

0 comments on commit 7599ad3

Please sign in to comment.