From 1c9efa1331147b5b351f4035ea6e5a896694cd2e Mon Sep 17 00:00:00 2001 From: ibratabian17 Date: Mon, 23 Sep 2024 00:03:27 +0800 Subject: [PATCH] proper account logging --- core/route/account.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/route/account.js b/core/route/account.js index 70adf78..d81da9e 100644 --- a/core/route/account.js +++ b/core/route/account.js @@ -166,7 +166,7 @@ exports.initroute = (app) => { return { ...userProfile, ip: req.clientIp, ticket: ticket }; } else { // If the profile is not found locally, fetch from external source - console.error(`[ACC] Asking Official Server For: `, profileId); + console.log(`[ACC] Asking Official Server For: `, profileId); const url = `https://prod.just-dance.com/profile/v2/profiles?profileIds=${encodeURIComponent(profileId)}`; // Modify headers by omitting the Host header const headers = { ...req.headers }; @@ -179,6 +179,7 @@ exports.initroute = (app) => { // Assume the external response contains the profile as `profileData` const profileData = profileResponse.data[profileId]; // Adjust according to the actual response format if (profileData) { + console.log(`[ACC] Account Saved to the server: `, profileId); const defaultProfile = { ...profileData, ip: req.clientIp, ticket: ticket }; // Add the fetched profile to local storage