diff options
author | Christian Fehmer <[email protected]> | 2024-07-01 14:46:04 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-01 14:46:04 +0200 |
commit | e8d9ce63da6f105472c5b6810d17fda23d74221e (patch) | |
tree | b4005cccf2ae887879591fc0879f98cbaeb9a04f | |
parent | d566ba6468b21170896fba283e3b286427df1358 (diff) | |
download | monkeytype-e8d9ce63da6f105472c5b6810d17fda23d74221e.tar.gz monkeytype-e8d9ce63da6f105472c5b6810d17fda23d74221e.zip |
chore: fix check annotations for dev routes (@fehmer) (#5549)
-rw-r--r-- | backend/src/api/controllers/dev.ts | 2 | ||||
-rw-r--r-- | backend/src/api/routes/dev.ts | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/backend/src/api/controllers/dev.ts b/backend/src/api/controllers/dev.ts index 6c4e854d5..122f24018 100644 --- a/backend/src/api/controllers/dev.ts +++ b/backend/src/api/controllers/dev.ts @@ -269,7 +269,7 @@ function randomValue<T>(values: T[]): T { } function createArray<T>(size: number, builder: () => T): T[] { - return new Array(size).fill(0).map((it) => builder()); + return new Array(size).fill(0).map(() => builder()); } async function updateTestActicity(uid: string): Promise<void> { diff --git a/backend/src/api/routes/dev.ts b/backend/src/api/routes/dev.ts index b251f58e2..2ea6516cf 100644 --- a/backend/src/api/routes/dev.ts +++ b/backend/src/api/routes/dev.ts @@ -1,5 +1,4 @@ import { Router } from "express"; -import { authenticateRequest } from "../../middlewares/auth"; import { asyncHandler, validateConfiguration, |