add tracking cooldown
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
Deploy Website / deploy (push) Successful in 3m18s

This commit is contained in:
Lee
2024-10-11 18:47:33 +01:00
parent 29f9b305e7
commit d16cf9e4af
2 changed files with 13 additions and 0 deletions

View File

@ -4,3 +4,12 @@
export function isProduction() {
return process.env.NODE_ENV === "production";
}
/**
* Delays a promise
*
* @param ms the number of milliseconds to delay
*/
export function delay(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
}