aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-21 08:25:42 -0800
committerAdam Soltys <[email protected]>2023-02-21 08:25:42 -0800
commita311401e50cbc70f5d613097607cb55466aa4061 (patch)
tree52828cda0fc7060c9bdff7345e587b167a6eccb2 /lib
parentb3cca3e37bc654d364736db66732a6aa38ccfd84 (diff)
downloadcoinos-server-a311401e50cbc70f5d613097607cb55466aa4061.tar.gz
coinos-server-a311401e50cbc70f5d613097607cb55466aa4061.zip
prettier
Diffstat (limited to 'lib')
-rw-r--r--lib/db.js6
-rw-r--r--lib/nostr.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/db.js b/lib/db.js
index cc9c3919..05917645 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -17,11 +17,11 @@ export let g = async k => {
};
export let s = (k, v) => {
if (k === "user:null") {
- warn("###### NULL USER #######")
+ warn("###### NULL USER #######");
console.trace();
- }
+ }
db.set(k, JSON.stringify(v));
-}
+};
let retries = {};
export let t = async (k, f) => {
diff --git a/lib/nostr.js b/lib/nostr.js
index 2eb59ae7..604d207d 100644
--- a/lib/nostr.js
+++ b/lib/nostr.js
@@ -46,7 +46,7 @@ export let fillPool = () => {
if (uid) ev.recipient = await g(`user:${uid}`);
ev.author = ev.user;
emit(uid, "event", ev);
- }
+ }
}
} else if (sub.includes("profile")) {
let { pubkey } = ev;