From 19e12bf5cf6f56aed429333594444a40184c8a06 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 10:39:21 +0900 Subject: :v: --- src/api/private/signup.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/api/private') 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)); -- cgit v1.2.3-freya