diff options
author | Miodec <[email protected]> | 2024-07-22 14:01:30 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-07-22 14:01:30 +0200 |
commit | 8954af953385e69a4f4c4dcbc2cbf4f5221f17b7 (patch) | |
tree | 3a54daa077f8de0c6fdb14be3d2756144a6d63d0 | |
parent | f67d4f527abea98d4619e940b8766a8d4cba487d (diff) | |
download | monkeytype-8954af953385e69a4f4c4dcbc2cbf4f5221f17b7.tar.gz monkeytype-8954af953385e69a4f4c4dcbc2cbf4f5221f17b7.zip |
fix missing imports, remove last .js
-rw-r--r-- | backend/src/api/controllers/dev.ts | 2 | ||||
-rw-r--r-- | backend/src/api/controllers/user.ts | 12 | ||||
-rw-r--r-- | backend/src/middlewares/configuration.ts | 2 | ||||
-rw-r--r-- | backend/src/workers/later-worker.ts | 2 |
4 files changed, 13 insertions, 5 deletions
diff --git a/backend/src/api/controllers/dev.ts b/backend/src/api/controllers/dev.ts index b87c32b27..a81cc5aa1 100644 --- a/backend/src/api/controllers/dev.ts +++ b/backend/src/api/controllers/dev.ts @@ -9,7 +9,7 @@ import { roundTo2 } from "../../utils/misc"; import { ObjectId } from "mongodb"; import * as LeaderboardDal from "../../dal/leaderboards"; import MonkeyError from "../../utils/error"; -import isNumber from "lodash/isNumber.js"; +import isNumber from "lodash/isNumber"; import { Mode } from "@monkeytype/shared-types/config"; import { PersonalBest, PersonalBests } from "@monkeytype/shared-types/user"; diff --git a/backend/src/api/controllers/user.ts b/backend/src/api/controllers/user.ts index 12c9241be..6915c093f 100644 --- a/backend/src/api/controllers/user.ts +++ b/backend/src/api/controllers/user.ts @@ -25,10 +25,18 @@ import * as ReportDAL from "../../dal/report"; import emailQueue from "../../queues/email-queue"; import FirebaseAdmin from "../../init/firebase-admin"; import * as AuthUtil from "../../utils/auth"; - import * as Dates from "date-fns"; import { UTCDateMini } from "@date-fns/utc"; -import * as BlocklistDal from "../../dal/blocklist.js"; +import * as BlocklistDal from "../../dal/blocklist"; +import { Mode, Mode2 } from "@monkeytype/shared-types/config"; +import { + AllTimeLbs, + CountByYearAndDay, + RankAndCount, + TestActivity, + UserProfile, + UserProfileDetails, +} from "@monkeytype/shared-types"; async function verifyCaptcha(captcha: string): Promise<void> { if (!(await verify(captcha))) { diff --git a/backend/src/middlewares/configuration.ts b/backend/src/middlewares/configuration.ts index 42e180943..1d0ecf6c2 100644 --- a/backend/src/middlewares/configuration.ts +++ b/backend/src/middlewares/configuration.ts @@ -1,5 +1,5 @@ import type { Response, NextFunction, RequestHandler } from "express"; -import MonkeyError from "../utils/error.js"; +import MonkeyError from "../utils/error"; import { Configuration } from "@monkeytype/shared-types"; export type ValidationOptions<T> = { diff --git a/backend/src/workers/later-worker.ts b/backend/src/workers/later-worker.ts index 5cbfdccbe..1c9d9a35c 100644 --- a/backend/src/workers/later-worker.ts +++ b/backend/src/workers/later-worker.ts @@ -14,7 +14,7 @@ import LaterQueue, { type LaterTaskType, } from "../queues/later-queue"; import { recordTimeToCompleteJob } from "../utils/prometheus"; -import { WeeklyXpLeaderboard } from "../services/weekly-xp-leaderboard.js"; +import { WeeklyXpLeaderboard } from "../services/weekly-xp-leaderboard"; import { MonkeyMail } from "@monkeytype/shared-types"; async function handleDailyLeaderboardResults( |