fix: accept steamAppId=0 in games lookup, treat 400 as valid key in plugin test
This commit is contained in:
@@ -11,7 +11,7 @@ export const gamesLookupRoutes = new Elysia({
|
||||
async ({ query, set }) => {
|
||||
const { steamAppId } = query
|
||||
|
||||
if (!steamAppId) {
|
||||
if (steamAppId === undefined || steamAppId === null) {
|
||||
set.status = 400
|
||||
return { error: "steamAppId query parameter is required" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user