Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed May 5, 2024
1 parent 80e0af7 commit 2f3fc41
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/src/api/controllers/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,6 @@ export async function addResult(
// );
// return res.status(400).json({ message: "Time traveler detected" });

// this probably wont work if we replace the timestamp with the server time later
// let timestampres = await ResultDAO.getResultByTimestamp(
// uid,
// result.timestamp
// );
// if (timestampres) {
// return res.status(400).json({ message: "Duplicate result" });
// }

//convert result test duration to miliseconds
//get latest result ordered by timestamp
let lastResultTimestamp: null | number = null;
Expand Down

0 comments on commit 2f3fc41

Please sign in to comment.