mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Prepare endpoint
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user