Update [userId].ts
This commit is contained in:
@@ -27,18 +27,21 @@ 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: "Тестовый аккаунт",
|
||||
name: "Разработчик мода",
|
||||
color: "B656E5"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Anixart Extension",
|
||||
color: "F04E4E"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user