mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 18:53:26 +08:00
chore: remove unused code
This commit is contained in:
parent
80e0af764f
commit
2f3fc419b8
1 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue