mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed loading route and maps
This commit is contained in:
parent
1f774a8299
commit
62cb8d8e18
18 changed files with 715 additions and 369 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue