This commit is contained in:
AMAICDAX 2025-09-10 14:46:43 +02:00
parent f7e1e618a4
commit e2abe509d0

View file

@ -92,8 +92,8 @@ const getUserProfile = async (req, res) => {
}; };
const scrapeLinkedInProfile = async (user) => { const scrapeLinkedInProfile = async (user) => {
const img = user.img; const UserImg = user.img;
const useremail = user.email; const UserEmail = user.email;
const profileUrl = user.linkedinUrl; const profileUrl = user.linkedinUrl;
console.log("Scraping LinkedIn profile:", profileUrl); console.log("Scraping LinkedIn profile:", profileUrl);
@ -160,9 +160,9 @@ const scrapeLinkedInProfile = async (user) => {
); );
return { return {
img: user.img || null, img: UserImg || null,
email: user.email || null, email: UserEmail || null,
linkedinUrl: user.linkedinUrl || null, linkedinUrl: profileUrl || null,
name: getText("h1"), name: getText("h1"),
headline: getText("div.text-body-medium.break-words"), headline: getText("div.text-body-medium.break-words"),