diff options
author | Miodec <[email protected]> | 2024-07-18 16:09:50 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-07-18 16:09:50 +0200 |
commit | bffe38e00b4ffaf806cf06795f7ba7a590ff9cbd (patch) | |
tree | 7b3ea0e732337a3b2e35527281992554db3dd922 | |
parent | 9ad518b34bc2a4630a53c759ee246ff8d713e036 (diff) | |
download | monkeytype-bffe38e00b4ffaf806cf06795f7ba7a590ff9cbd.tar.gz monkeytype-bffe38e00b4ffaf806cf06795f7ba7a590ff9cbd.zip |
test code
-rw-r--r-- | backend/src/api/controllers/ape-key.ts | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/backend/src/api/controllers/ape-key.ts b/backend/src/api/controllers/ape-key.ts index 9445755c8..de5544926 100644 --- a/backend/src/api/controllers/ape-key.ts +++ b/backend/src/api/controllers/ape-key.ts @@ -6,21 +6,7 @@ import MonkeyError from "../../utils/error.js"; import { MonkeyResponse } from "../../utils/monkey-response.js"; import { base64UrlEncode } from "../../utils/misc.js"; import { ObjectId } from "mongodb"; -import { type ApeKey } from "@monkeytype/shared-types"; -import { type PlaySoundOnError } from "@monkeytype/shared-types/config"; - -//test code -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const a: ApeKey = { - name: "", - enabled: false, - createdOn: 0, - modifiedOn: 0, - lastUsedOn: 0, -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const b: PlaySoundOnError = "1"; +import { ApeKey } from "@monkeytype/shared-types"; function cleanApeKey(apeKey: MonkeyTypes.ApeKeyDB): ApeKey { return _.omit(apeKey, "hash", "_id", "uid", "useCount"); |