aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristian Fehmer <[email protected]>2024-07-01 14:46:04 +0200
committerGitHub <[email protected]>2024-07-01 14:46:04 +0200
commite8d9ce63da6f105472c5b6810d17fda23d74221e (patch)
treeb4005cccf2ae887879591fc0879f98cbaeb9a04f
parentd566ba6468b21170896fba283e3b286427df1358 (diff)
downloadmonkeytype-e8d9ce63da6f105472c5b6810d17fda23d74221e.tar.gz
monkeytype-e8d9ce63da6f105472c5b6810d17fda23d74221e.zip
chore: fix check annotations for dev routes (@fehmer) (#5549)
-rw-r--r--backend/src/api/controllers/dev.ts2
-rw-r--r--backend/src/api/routes/dev.ts1
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,