Update [userId].ts

This commit is contained in:
2024-07-23 21:39:26 +05:00
committed by GitHub
parent 78d6a18c40
commit b229a0661d

View File

@@ -27,17 +27,18 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
try { try {
const anixartRes = await axios.get<ProfileResponse>(anixartAPI); const anixartRes = await axios.get<ProfileResponse>(anixartAPI);
const currentProfile = anixartRes.data.profile && userId === '790852' const currentProfile = anixartRes.data.profile && userId === '1207425'
? { ? {
...anixartRes.data.profile, ...anixartRes.data.profile,
is_verified: true, is_verified: true,
is_sponsor: true, is_sponsor: true,
is_perm_banned: false,
is_sponsor_transferred: false, is_sponsor_transferred: false,
sponsorshipExpires: Number.MAX_SAFE_INTEGER, sponsorshipExpires: Number.MAX_SAFE_INTEGER,
roles: [ roles: [
{ {
id: 1, id: 1,
name: "Разработчик мода", name: "Тестовый аккаунт",
color: "F04E4E" color: "F04E4E"
} }
], ],