Update [userId].ts

This commit is contained in:
2024-07-28 17:56:11 +05:00
committed by GitHub
parent 79cb5e12a5
commit 96b8c26f29

View File

@@ -27,19 +27,22 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
try {
const anixartRes = await axios.get<ProfileResponse>(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"
}
],
}