From bf8e649f7098575c91217035d9d7fd5f872122b3 Mon Sep 17 00:00:00 2001 From: journey-ad Date: Sat, 22 Jun 2024 15:11:06 +0800 Subject: [PATCH] :bug: Fix `torrentByHash` --- app/api/graphql/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/graphql/service.ts b/app/api/graphql/service.ts index d99b129..d26bb90 100644 --- a/app/api/graphql/service.ts +++ b/app/api/graphql/service.ts @@ -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 = ` @@ -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);