Files
echecsfrance/app/server/procedures/fetchTournamentResults.ts
T
2023-09-18 16:25:14 +02:00

20 lines
462 B
TypeScript

import { fetchTournamentResultsSchema } from "@/schemas";
import { errorLog } from "@/utils/logger";
import { publicProcedure } from "../trpc";
export const fetchTournamentResults = publicProcedure
.input(fetchTournamentResultsSchema)
.mutation(async ({ input }) => {
try {
console.log(input.url);
// Fetch the tournament results using Python
return true;
} catch (error) {
errorLog(error);
throw error;
}
});