update segmentParamSchema, add typing to getEntity
This commit is contained in:
1 parent
d4ff7c8e3f
commit
f4eaa9fd0d
3 files changed
+5
-4
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user