Add followedTopics array on signup

This commit is contained in:
Clayton Wilson 2019-10-25 19:27:45 -04:00 committed by GitHub
parent 60f83da514
commit b31a571b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,8 @@ exports.signup = (req, res) => {
email: newUser.email,
handle: newUser.handle,
createdAt: newUser.createdAt,
userId
userId,
followedTopics: []
};
handle2Email.set(userCred.handle, userCred.email);
return db.doc(`/users/${newUser.handle}`).set(userCred);