update segmentParamSchema, add typing to getEntity

This commit is contained in:
Francis Cao committed 2026-01-22 16:32:06 -08:00
1 parent d4ff7c8e3f
commit f4eaa9fd0d
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
import type { Link, Pixel, Website } from '@/generated/prisma/client';
import { getLink, getPixel, getWebsite } from '@/queries/prisma';
export async function getEntity(entityId: string) {
export async function getEntity(entityId: string): Promise<Website | Link | Pixel | null> {
const website = await getWebsite(entityId);
const link = await getLink(entityId);
const pixel = await getPixel(entityId);