api cache

This commit is contained in:
Owen Rees
2023-06-14 16:40:33 +02:00
parent 2a6331fb56
commit f4b3d26b4f
5 changed files with 307 additions and 12 deletions
+1
View File
@@ -3,6 +3,7 @@ import { Db } from "mongodb";
/**
* Converts date from string into a date to allow ordering
*/
// TODO remove the .toArray method as this is not SRP friendly
export const dateOrderingFrance = async (db: Db) => {
return await db
.collection("tournaments")