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 {
|
try {
|
||||||
twitchData = await getUserByName(redis, username);
|
twitchData = await getUserByName(redis, username);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
res
|
res.status(500).json({
|
||||||
.status(500)
|
error: { message: "Twitch or internal API is down", code: 10100 },
|
||||||
.json({
|
});
|
||||||
error: { message: "Twitch or internal API is down", code: 10100 },
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if data is empty, user does not exist
|
// 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 };
|
export type { fakeDataEntry };
|
||||||
|
|
Loading…
Add table
Reference in a new issue