fixed loading route and maps

This commit is contained in:
Fedor Katurov 2019-12-12 13:52:30 +07:00
parent 1f774a8299
commit 62cb8d8e18
18 changed files with 715 additions and 369 deletions

View file

@ -5,14 +5,6 @@ module.exports = async (req, res) => {
const { id, token } = req.query;
const user = await User.findOne({ _id: id, token });
// .populate({
// path: 'routes',
// select: '_id title distance owner updated_at',
// options: {
// limit: 200,
// sort: { updated_at: -1 },
// }
// })
const random_url = await generateRandomUrl();

View file

@ -16,7 +16,7 @@ const fetchUserData = async (req, res) => {
client_id: CONFIG.SOCIAL.VK.APP_ID,
client_secret: CONFIG.SOCIAL.VK.SECRET,
code,
redirect_uri: `${proto}://${host}/auth/social/vk`,
redirect_uri: `${proto}://${host}/api/auth/social/vk`,
}
}
).catch(() => {