diff options
| author | Adam Soltys <[email protected]> | 2025-02-11 20:14:14 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-11 20:14:14 +0000 |
| commit | 8add46c0975686ce0967c2c38514a31aad6ee8cb (patch) | |
| tree | 2aec8ce9158325b187cf2ad9ba114add7787ca9d | |
| parent | 3ef4ac770d1e1018d6f712bcbb943d34f32585fa (diff) | |
| download | coinos-server-8add46c0975686ce0967c2c38514a31aad6ee8cb.tar.gz coinos-server-8add46c0975686ce0967c2c38514a31aad6ee8cb.zip | |
check for destination
| -rw-r--r-- | routes/users.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts index 4c34e375..c0d99b7d 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -261,7 +261,7 @@ export default { } user.haspin = !!user.pin; - user.destination = user.destination.trim(); + if (user.destination) user.destination = user.destination.trim(); await s(`user:${user.pubkey}`, user.id); await s( `user:${user.username.toLowerCase().replace(/\s/g, "")}`, |
