From 5903f3b4864746de62e62276a0503e15a792ebba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BC=E3=83=BC=E3=83=AC?= Date: Wed, 7 May 2025 19:53:09 +0500 Subject: [PATCH] Update profile.js --- api/v1/src/profile.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/v1/src/profile.js b/api/v1/src/profile.js index 34c379f..4f4dc2a 100644 --- a/api/v1/src/profile.js +++ b/api/v1/src/profile.js @@ -7,12 +7,6 @@ async function getProfileFromAnixart(profileId, token = '') { try { const response = await axios.get(url); const profileData = response.data; - const profileBadgeData = response.data; - - if (!profileBadgeData.profile.badge) { - profileBadgeData.profile = {}; - } - profileBadgeData.profile.badge.id = 6; // Убедимся, что profile существует if (!profileData.profile) { @@ -61,4 +55,3 @@ profileData.profile.avatar = "https://64.media.tumblr.com/14e5ee9705bfd7a72e671b } module.exports = { getProfileFromAnixart }; -