Update profile.js
This commit is contained in:
@@ -7,12 +7,6 @@ async function getProfileFromAnixart(profileId, token = '') {
|
|||||||
try {
|
try {
|
||||||
const response = await axios.get(url);
|
const response = await axios.get(url);
|
||||||
const profileData = response.data;
|
const profileData = response.data;
|
||||||
const profileBadgeData = response.data;
|
|
||||||
|
|
||||||
if (!profileBadgeData.profile.badge) {
|
|
||||||
profileBadgeData.profile = {};
|
|
||||||
}
|
|
||||||
profileBadgeData.profile.badge.id = 6;
|
|
||||||
|
|
||||||
// Убедимся, что profile существует
|
// Убедимся, что profile существует
|
||||||
if (!profileData.profile) {
|
if (!profileData.profile) {
|
||||||
@@ -61,4 +55,3 @@ profileData.profile.avatar = "https://64.media.tumblr.com/14e5ee9705bfd7a72e671b
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { getProfileFromAnixart };
|
module.exports = { getProfileFromAnixart };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user