From 96b8c26f290a685757fa02968ce75e05be4fc8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BC=E3=83=BC=E3=83=AC?= Date: Sun, 28 Jul 2024 17:56:11 +0500 Subject: [PATCH] Update [userId].ts --- src/pages/api/extension/profile/[userId].ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pages/api/extension/profile/[userId].ts b/src/pages/api/extension/profile/[userId].ts index 06d945d..ed92734 100644 --- a/src/pages/api/extension/profile/[userId].ts +++ b/src/pages/api/extension/profile/[userId].ts @@ -27,19 +27,22 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) try { const anixartRes = await axios.get(anixartAPI); - const currentProfile = anixartRes.data.profile && userId === '1207425' + const currentProfile = anixartRes.data.profile && userId === '790852' ? { ...anixartRes.data.profile, is_verified: true, - is_sponsor: true, - is_perm_banned: false, - is_sponsor_transferred: false, + is_sponsor: false, sponsorshipExpires: Number.MAX_SAFE_INTEGER, roles: [ { id: 1, - name: "Тестовый аккаунт", - color: "F04E4E" + name: "Разработчик мода", + color: "B656E5" + }, + { + id: 2, + name: "Anixart Extension", + color: "F04E4E" } ], }