api data transformation

This commit is contained in:
Owen Rees
2023-06-20 08:55:56 +02:00
parent f1ef7cd3f2
commit 5aaa1deeff
3 changed files with 5 additions and 3 deletions
-1
View File
@@ -3,7 +3,6 @@ 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")