diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 10:39:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 10:39:21 +0900 |
| commit | 19e12bf5cf6f56aed429333594444a40184c8a06 (patch) | |
| tree | 5d1a5533b21743dea82a9db9b2bb8fdb99530321 /src/api/private | |
| parent | [Test] Fix bug (diff) | |
| download | sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.tar.gz sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.tar.bz2 sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.zip | |
:v:
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)); |