From f2c5dc468c9bdb86e096565e9306f53eb1876ce0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2017 12:43:15 +0900 Subject: Extract user's profile --- src/api/private/signup.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/api/private') diff --git a/src/api/private/signup.ts b/src/api/private/signup.ts index 2b679b914c..73e04f8b37 100644 --- a/src/api/private/signup.ts +++ b/src/api/private/signup.ts @@ -65,14 +65,12 @@ export default async (req: express.Request, res: express.Response) => { token: secret, avatar_id: null, banner_id: null, - birthday: null, created_at: new Date(), - bio: null, + description: null, email: null, followers_count: 0, following_count: 0, links: null, - location: null, name: name, password: hash, posts_count: 0, @@ -80,7 +78,17 @@ export default async (req: express.Request, res: express.Response) => { liked_count: 0, drive_capacity: 1073741824, // 1GB username: username, - username_lower: username.toLowerCase() + username_lower: username.toLowerCase(), + profile: { + bio: null, + birthday: null, + blood: null, + gender: null, + handedness: null, + height: null, + location: null, + weight: null + } }); // Response -- cgit v1.2.3-freya