Update [userId].ts
This commit is contained in:
@@ -27,19 +27,22 @@ 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 === '1207425'
|
const currentProfile = anixartRes.data.profile && userId === '790852'
|
||||||
? {
|
? {
|
||||||
...anixartRes.data.profile,
|
...anixartRes.data.profile,
|
||||||
is_verified: true,
|
is_verified: true,
|
||||||
is_sponsor: true,
|
is_sponsor: false,
|
||||||
is_perm_banned: 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: "B656E5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: "Anixart Extension",
|
||||||
|
color: "F04E4E"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user