mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: route list icon
This commit is contained in:
parent
6ffdca22d7
commit
5aae945517
5 changed files with 37 additions and 6 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue