mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-24 20:00:37 +00:00
chore(bigint): clean up unneeded function
This commit is contained in:
@@ -19,22 +19,6 @@ type Parameters = {
|
||||
animated?: string;
|
||||
};
|
||||
|
||||
const convertBigIntToString = (obj: { [key: string]: any }): { [key: string]: any } => {
|
||||
const result: { [key: string]: any } = Array.isArray(obj) ? [] : {};
|
||||
|
||||
for (const key in obj) {
|
||||
if (typeof obj[key] === "bigint") {
|
||||
result[key] = obj[key].toString();
|
||||
} else if (typeof obj[key] === "object" && obj[key] !== null) {
|
||||
result[key] = convertBigIntToString(obj[key]);
|
||||
} else {
|
||||
result[key] = obj[key];
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
export default async function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
|
||||
let getUser: any = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user