Skip to content

Commit 2e651f2

Browse files
committed
add: github created at key in db for new joiner
1 parent 37b6152 commit 2e651f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ const githubAuthCallback = (req, res, next) => {
4949
logger.error(err);
5050
return res.boom.unauthorized("User cannot be authenticated");
5151
}
52-
5352
userData = {
5453
github_id: user.username,
5554
github_display_name: user.displayName,
55+
github_created_at: user._json.created_at,
5656
};
5757

5858
const { userId, incompleteUserDetails } = await users.addOrUpdate(userData);

0 commit comments

Comments
 (0)