From d50930dd7918696bc578fe291bffd459d18570bb Mon Sep 17 00:00:00 2001 From: ibratabian17 Date: Mon, 23 Sep 2024 18:35:07 +0800 Subject: [PATCH] Fix Official Server Response --- core/route/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/route/account.js b/core/route/account.js index d81da9e..4ce2ea1 100644 --- a/core/route/account.js +++ b/core/route/account.js @@ -177,7 +177,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 + const profileData = profileResponse.data[0]; // 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 };