We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55fea9 commit 8d18645Copy full SHA for 8d18645
controllers/auth.js
@@ -52,7 +52,7 @@ const githubAuthCallback = (req, res, next) => {
52
userData = {
53
github_id: user.username,
54
github_display_name: user.displayName,
55
- github_created_at: user._json.created_at,
+ github_created_at: Number((new Date(user._json.created_at).getTime() / 1000).toFixed(0)),
56
};
57
58
const { userId, incompleteUserDetails } = await users.addOrUpdate(userData);
0 commit comments