aboutsummaryrefslogtreecommitdiffstats
path: root/lib/register.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-14 09:08:39 -0700
committerAdam Soltys <[email protected]>2024-10-14 09:08:39 -0700
commite2d5d6f874f620db242a3ec8fbe3e536b51f091a (patch)
tree8436f1ee3d2a0840dd90501f154378a7db667d02 /lib/register.ts
parente4a821d9815d88f6fb26e0dd14f43609038c6734 (diff)
downloadcoinos-server-e2d5d6f874f620db242a3ec8fbe3e536b51f091a.tar.gz
coinos-server-e2d5d6f874f620db242a3ec8fbe3e536b51f091a.zip
default follows
Diffstat (limited to 'lib/register.ts')
-rw-r--r--lib/register.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/register.ts b/lib/register.ts
index f2e97fed..42a283a3 100644
--- a/lib/register.ts
+++ b/lib/register.ts
@@ -64,6 +64,8 @@ export default async (user, ip) => {
.set(`user:${pubkey}`, id)
.set(`balance:${id}`, 0)
.set(`account:${id}`, account)
+ .set(`${pubkey}:follows:n`, 0)
+ .set(`${pubkey}:followers:n`, 0)
.lPush(`${id}:accounts`, id)
.exec();