Skip to content

Commit

Permalink
🐛 Fix torrentByHash
Browse files Browse the repository at this point in the history
  • Loading branch information
journey-ad committed Jun 22, 2024
1 parent b0cd088 commit bf8e649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/graphql/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export async function search(_: any, { queryInput }: any) {
}
}

export async function torrentByHash(hash: string) {
export async function torrentByHash(_: any, { hash }: { hash: string }) {
try {
// SQL query to fetch torrent data and files information by hash
const sql = `
Expand Down Expand Up @@ -356,7 +356,7 @@ export async function statsInfo() {
updated_at: Math.floor(
new Date(data.latest_torrent.updated_at).getTime() / 1000,
),
}
},
};
} catch (error) {
console.error("Error in statsInfo resolver:", error);
Expand Down

0 comments on commit bf8e649

Please sign in to comment.