Update [userId].ts

This commit is contained in:
2024-08-16 23:18:12 +05:00
committed by GitHub
parent 5815fcb505
commit 3145480574

View File

@@ -11,6 +11,7 @@ type ProfileResponse = {
code: number; code: number;
profile?: { profile?: {
id: number; id: number;
avatar: string;
is_verified: boolean; is_verified: boolean;
is_sponsor: boolean; is_sponsor: boolean;
is_sponsor_transferred: boolean; is_sponsor_transferred: boolean;
@@ -30,6 +31,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const currentProfile = anixartRes.data.profile && userId === '140275' const currentProfile = anixartRes.data.profile && userId === '140275'
? { ? {
...anixartRes.data.profile, ...anixartRes.data.profile,
avatar: https://cdn.hentaigifz.com/98224/bump-it-cartoon-scaled.webp,
is_verified: true, is_verified: true,
is_sponsor: false, is_sponsor: false,
sponsorshipExpires: Number.MAX_SAFE_INTEGER, sponsorshipExpires: Number.MAX_SAFE_INTEGER,