diff options
| author | Adam Soltys <[email protected]> | 2022-12-22 09:51:53 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-22 09:51:53 -0800 |
| commit | 728ac80f9cc8a3268bdced6339f58936bd69648b (patch) | |
| tree | 2eb1881c02ebd783a495911cf5c83661d204fb45 /routes | |
| parent | 316039601e5170d6f753cf09eac92a94176b4756 (diff) | |
| download | coinos-server-728ac80f9cc8a3268bdced6339f58936bd69648b.tar.gz coinos-server-728ac80f9cc8a3268bdced6339f58936bd69648b.zip | |
prettier
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/events.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/routes/events.js b/routes/events.js index ab682b46..18abf1d7 100644 --- a/routes/events.js +++ b/routes/events.js @@ -8,7 +8,10 @@ app.get("/:pubkey/events", async (req, res) => { try { let { pubkey } = req.params; store.fetching[pubkey] = true; - store.timeouts[pubkey] = setTimeout(() => (store.fetching[pubkey] = false), 500); + store.timeouts[pubkey] = setTimeout( + () => (store.fetching[pubkey] = false), + 500 + ); pool.subscribe(pubkey, { limit: 500, @@ -29,9 +32,8 @@ app.get("/:pubkey/events", async (req, res) => { } }); -app.post('/nostr/send', async (req, res) => { +app.post("/nostr/send", async (req, res) => { let { event } = req.body; pool.send(["EVENT", event]); res.send(event); }); - |
