fix: accept steamAppId=0 in games lookup, treat 400 as valid key in plugin test

This commit is contained in:
2026-06-28 17:36:32 +08:00
parent 046e483861
commit 4b7efd3c5c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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" }
}