diff options
Diffstat (limited to 'src/api/private')
| -rw-r--r-- | src/api/private/signup.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/private/signup.ts b/src/api/private/signup.ts index 34e98db284..1eb6abfe9f 100644 --- a/src/api/private/signup.ts +++ b/src/api/private/signup.ts @@ -55,7 +55,7 @@ export default async (req: express.Request, res: express.Response) => { const secret = '!' + rndstr('a-zA-Z0-9', 32); // Create account - const inserted = await User.insert({ + const account = await User.insert({ token: secret, avatar_id: null, banner_id: null, @@ -77,8 +77,6 @@ export default async (req: express.Request, res: express.Response) => { username_lower: username.toLowerCase() }); - const account = inserted.ops[0]; - // Response res.send(await serialize(account)); |