diff --git a/src/server/lib/mail.ts b/src/server/lib/mail.ts index 9f24098..dff530f 100644 --- a/src/server/lib/mail.ts +++ b/src/server/lib/mail.ts @@ -1,6 +1,5 @@ import { createTransport } from "nodemailer" import config from "./config.js" -import { generateFileId } from "./files.js" const { mail } = config const transport = createTransport({ @@ -35,6 +34,4 @@ export function sendMail(to: string, subject: string, content: string) { `` )}

If you do not believe that you are the intended recipient of this email, please disregard this message.`, }) -} - -export * as CodeMgr from "./codes.js" \ No newline at end of file +} \ No newline at end of file diff --git a/src/server/routes/api/v1/account/access.ts b/src/server/routes/api/v1/account/access.ts index ce45081..763ad23 100644 --- a/src/server/routes/api/v1/account/access.ts +++ b/src/server/routes/api/v1/account/access.ts @@ -20,7 +20,6 @@ import { scheme, } from "../../../../lib/middleware.js" import ServeError from "../../../../lib/errors.js" -import { CodeMgr, sendMail } from "../../../../lib/mail.js" import Configuration from "../../../../lib/config.js" import { AccountSchemas, AuthSchemas, FileSchemas } from "../../../../lib/schemas/index.js" diff --git a/src/server/routes/api/v1/account/index.ts b/src/server/routes/api/v1/account/index.ts index 3cace2a..109b7f8 100644 --- a/src/server/routes/api/v1/account/index.ts +++ b/src/server/routes/api/v1/account/index.ts @@ -22,7 +22,8 @@ import { verifyPoi, } from "../../../../lib/middleware.js" import ServeError from "../../../../lib/errors.js" -import { CodeMgr, sendMail } from "../../../../lib/mail.js" +import { sendMail } from "../../../../lib/mail.js" +import * as CodeMgr from "../../../../lib/codes.js" import Configuration from "../../../../lib/config.js" import { AccountSchemas, FileSchemas } from "../../../../lib/schemas/index.js" diff --git a/src/server/routes/api/web/go.ts b/src/server/routes/api/web/go.ts index 06c6933..60cd851 100644 --- a/src/server/routes/api/web/go.ts +++ b/src/server/routes/api/web/go.ts @@ -3,7 +3,7 @@ import bytes from "bytes" import ServeError from "../../../lib/errors.js" import * as Accounts from "../../../lib/accounts.js" import type Files from "../../../lib/files.js" -import { CodeMgr } from "../../../lib/mail.js" +import * as CodeMgr from "../../../lib/codes.js" import { Hono } from "hono" import { getAccount, login } from "../../../lib/middleware.js" export let router = new Hono<{