aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-17 06:02:01 -0800
committerAdam Soltys <[email protected]>2025-01-17 06:02:01 -0800
commit4da8b4e77e64fb1f410acb635c0f85d2a8b3603b (patch)
tree78644e3230b01c9ea8ce5c3fe960265ae675115d /lib/utils.ts
parentef71c296071be3081b3ac0d742283a261135ae6d (diff)
downloadcoinos-server-4da8b4e77e64fb1f410acb635c0f85d2a8b3603b.tar.gz
coinos-server-4da8b4e77e64fb1f410acb635c0f85d2a8b3603b.zip
handle no zaps case
Diffstat (limited to 'lib/utils.ts')
-rw-r--r--lib/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.ts b/lib/utils.ts
index 6649c752..a0a831d9 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -51,7 +51,7 @@ export const bip21 = (address, { amount, memo, tip, type }) => {
return `${network}:${address}?${url.toString()}`;
};
-export const getUser = async (username, fields) => {
+export const getUser = async (username, fields = undefined) => {
let update;
if (username === "undefined") fail("invalid user");
const user = await migrate(username);