diff options
| author | Adam Soltys <[email protected]> | 2023-02-14 15:38:06 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-15 19:58:32 -0800 |
| commit | 3de8baffdbc1f026936c91f6976b57770c66cd8a (patch) | |
| tree | b43e2456fca55636398e6fd1cc1fdd6e52f82bff | |
| parent | 19480e0c07632b645fbee881dcbc3bf41c481eed (diff) | |
| download | coinos-server-3de8baffdbc1f026936c91f6976b57770c66cd8a.tar.gz coinos-server-3de8baffdbc1f026936c91f6976b57770c66cd8a.zip | |
fix notes endpoint
| -rw-r--r-- | routes/nostr.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routes/nostr.js b/routes/nostr.js index 1ca6fad5..53ad4c29 100644 --- a/routes/nostr.js +++ b/routes/nostr.js @@ -20,7 +20,8 @@ export default { }, async notes({ params: { pubkey } }, res) { - let user = await g(`user:${pubkey}`); + let uid = await g(`user:${pubkey}`); + let user = await g(`user:${uid}`); if (!user) user = { @@ -39,8 +40,6 @@ export default { q(`${pubkey}:notes`, params, opts).catch(nada); - await s(`user:${pubkey}`, user); - let ids = await db.sMembers(pubkey); let events = ids.length |
