Skip to content

Commit

Permalink
fix byStat StatFilter.Unoptimized bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sspenst committed May 14, 2024
1 parent 3e5f3ce commit 5a6caf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export async function doQuery(gameId: GameId, query: SearchQuery, reqUser?: User
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let statMatchQuery: FilterQuery<any> = {};

if (query.statFilter === StatFilter.HideSolved) {
if (query.statFilter === StatFilter.HideSolved || query.statFilter === StatFilter.Unoptimized) {
statMatchQuery = { complete: false };
} else if (query.statFilter === StatFilter.Solved) {
statMatchQuery = { complete: true };
Expand Down

0 comments on commit 5a6caf2

Please sign in to comment.