backend: route list icon

This commit is contained in:
muerwre 2018-11-30 16:30:41 +07:00
parent 6ffdca22d7
commit 5aae945517
5 changed files with 37 additions and 6 deletions

View file

@ -58,7 +58,7 @@ module.exports = async (req, res) => {
...newUser, first_name, last_name, photo, name,
};
const auth = await User.findOne({ _id: user._id });
const auth = await User.findOne({ _id: user._id }).populate('routes');
if (auth) {
await auth.set({