Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 24, 2025
1 parent d23d6c2 commit a797ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v2/data/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function handler(req, res) {
const found = [...characters, ...actionCards].filter((obj) =>
obj.name.includes(query),
);
if (found.length === 1) {
if (found.length > 1) {
query = String(found[0].id);
} else {
res.status(404).send("Not found");
Expand Down

0 comments on commit a797ac0

Please sign in to comment.