extra random user
This commit is contained in:
parent
7d3b0d2554
commit
37636cd583
1 changed files with 27 additions and 5 deletions
|
@ -64,11 +64,9 @@ export default async function handler(
|
|||
try {
|
||||
twitchData = await getUserByName(redis, username);
|
||||
} catch (e) {
|
||||
res
|
||||
.status(500)
|
||||
.json({
|
||||
error: { message: "Twitch or internal API is down", code: 10100 },
|
||||
});
|
||||
res.status(500).json({
|
||||
error: { message: "Twitch or internal API is down", code: 10100 },
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if data is empty, user does not exist
|
||||
|
@ -634,6 +632,30 @@ const fakeData: fakeDataEntry[] = [
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 18,
|
||||
name: "Headdesking1",
|
||||
points: 429,
|
||||
daily_change: 0,
|
||||
daily_change_percent: 0,
|
||||
assets: [
|
||||
{
|
||||
name: "anyaPls",
|
||||
count: 92,
|
||||
provider: "7tv",
|
||||
},
|
||||
{
|
||||
name: "toffeeDinkDonk",
|
||||
count: 6,
|
||||
provider: "7tv",
|
||||
},
|
||||
{
|
||||
name: "SoCute",
|
||||
count: 99,
|
||||
provider: "7tv",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export type { fakeDataEntry };
|
||||
|
|
Loading…
Reference in a new issue