mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
20 lines
462 B
TypeScript
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;
|
|
}
|
|
});
|