diff options
| author | Adam Soltys <[email protected]> | 2025-01-17 06:02:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-17 06:02:01 -0800 |
| commit | 4da8b4e77e64fb1f410acb635c0f85d2a8b3603b (patch) | |
| tree | 78644e3230b01c9ea8ce5c3fe960265ae675115d /lib | |
| parent | ef71c296071be3081b3ac0d742283a261135ae6d (diff) | |
| download | coinos-server-4da8b4e77e64fb1f410acb635c0f85d2a8b3603b.tar.gz coinos-server-4da8b4e77e64fb1f410acb635c0f85d2a8b3603b.zip | |
handle no zaps case
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils.ts | 2 |
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); |
