From 4f9b5c1431060f3dfdc62fdf0ce0bdbae295070c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Aug 2023 14:57:46 -0500 Subject: [PATCH] statusController: remove unnecessary "as Event" --- src/controllers/api/statuses.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index 121f6db..2f594ac 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -1,6 +1,6 @@ import { type AppController } from '@/app.ts'; import { publish } from '@/client.ts'; -import { type Event, ISO6391, Kind, z } from '@/deps.ts'; +import { ISO6391, Kind, z } from '@/deps.ts'; import { getAncestors, getDescendants, getEvent } from '@/queries.ts'; import { signEvent } from '@/sign.ts'; import { toStatus } from '@/transformers/nostr-to-mastoapi.ts'; @@ -31,7 +31,7 @@ const statusController: AppController = async (c) => { const event = await getEvent(id, { kind: 1 }); if (event) { - return c.json(await toStatus(event as Event<1>)); + return c.json(await toStatus(event)); } return c.json({ error: 'Event not found.' }, 404);