diff --git a/src/controllers/api/accounts.ts b/src/controllers/api/accounts.ts index e68e077a..b3c75ae5 100644 --- a/src/controllers/api/accounts.ts +++ b/src/controllers/api/accounts.ts @@ -276,7 +276,6 @@ const updateCredentialsController: AppController = async (c) => { const pubkey = await signer.getPublicKey(); const body = await parseBody(c.req.raw); const result = updateCredentialsSchema.safeParse(body); - const store = await Storages.db(); if (!result.success) { return c.json(result.error, 422); diff --git a/src/controllers/api/captcha.ts b/src/controllers/api/captcha.ts index 0ff99ba6..1bb92118 100644 --- a/src/controllers/api/captcha.ts +++ b/src/controllers/api/captcha.ts @@ -4,7 +4,7 @@ import { z } from 'zod'; import { AppController } from '@/app.ts'; import { Conf } from '@/config.ts'; -import { createAdminEvent, updateUser } from '@/utils/api.ts'; +import { updateUser } from '@/utils/api.ts'; interface Point { x: number; diff --git a/src/utils/api.ts b/src/utils/api.ts index c6d3c6b6..e7766979 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -1,4 +1,4 @@ -import { Context } from '@hono/hono'; +import { type Context } from '@hono/hono'; import { HTTPException } from '@hono/hono/http-exception'; import { NostrEvent, NostrFilter } from '@nostrify/nostrify'; import Debug from '@soapbox/stickynotes/debug'; diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index a293a04b..626203b8 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -1,4 +1,4 @@ -import { type NostrEvent, NSchema as n } from '@nostrify/nostrify'; +import { NSchema as n } from '@nostrify/nostrify'; import { escape } from 'entities'; import { nip19, UnsignedEvent } from 'nostr-tools';