aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-04 11:10:49 -0800
committerAdam Soltys <[email protected]>2026-03-04 11:10:49 -0800
commit6781fd2935ebc3abdeed182b4cee62c25c5482e7 (patch)
tree45a815255b9d04bbfc50f992770e053256433ac2 /routes/users.ts
parent1f10995adc4dca6831f1c128c7bbbded74c641f0 (diff)
downloadcoinos-server-6781fd2935ebc3abdeed182b4cee62c25c5482e7.tar.gz
coinos-server-6781fd2935ebc3abdeed182b4cee62c25c5482e7.zip
funds route
Diffstat (limited to 'routes/users.ts')
-rw-r--r--routes/users.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 78fddbc9..88c77846 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -418,6 +418,8 @@ export default {
}
}
+ if (!user) return c.json({}, 401);
+
if (body.authPubkey && !user.authPubkey) {
user.authPubkey = body.authPubkey;
await s(`user:${user.id}`, user);