mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
contact form tests
This commit is contained in:
@@ -14,7 +14,6 @@ export async function GET() {
|
||||
try {
|
||||
const client = await clientPromise;
|
||||
const db = client.db("tournamentsFranceDB");
|
||||
|
||||
const results = await dateOrderingFrance(db);
|
||||
const data = results.map(({ _id, ...rest }) => ({
|
||||
id: _id,
|
||||
|
||||
@@ -23,9 +23,7 @@ const getTournaments = async () => {
|
||||
try {
|
||||
const client = await clientPromise;
|
||||
const db = client.db("tournamentsFranceDB");
|
||||
|
||||
const data = await dateOrderingFrance(db);
|
||||
|
||||
return JSON.stringify(data);
|
||||
} catch (error) {
|
||||
throw new Error("Error fetching tournament data");
|
||||
|
||||
Reference in New Issue
Block a user